[jboss-user] [Beginners Corner] - Re: Jboss 5 Beta 2 won't even run with Java 5?

j0llyr0g3r do-not-reply at jboss.com
Mon Nov 5 11:10:15 EST 2007


Hey ho, 

i accidentally stumbled across a patch for this described here: http://www.jboss.com/index.html?module=bb&op=viewtopic&t=111930

anonymous wrote : I just submitted a patch (only one line was changed in the original file), please see here:
  | 
  | http://jira.jboss.org/jira/browse/JBAS-4491
  | 
  | I've compiled it and tested on my machine, seems working well. For anyone who has the same problem: You just need to download the Signature.java, compile it (it has no other dependency so can be compiled using your jdk 1.6 anyhow) and get the Signature.class. Then swap the Signature.class file in jboss-embedded-all.jar with the patched class file. That's it. The Signature.class lies in package: org.jboss.metadata.spi.signature .
  | 
  | This solved the regression problem and now I do not need to install jdk 1.5 just for this. :-)
  | 
  | 
  | Regards,
  | Ellen

Ok, so i downloaded it and tried to compile it via:

javac Signature.java

But this gives me a whole bunch of errors like:

----------
  | 30. ERROR in Signature.java (at line 205)
  |         public Signature(String... parameters)
  |                          ^^^^^^^^^^^^^^^^^^^^
  | Syntax error, varargs are only available if source level is 5.0
  | ----------
  | 31. ERROR in Signature.java (at line 215)
  |         public Signature(Class... parameters)
  |                          ^^^^^^^^^^^^^^^^^^^
  | Syntax error, varargs are only available if source level is 5.0
  | ----------
  | 32. ERROR in Signature.java (at line 226)
  |         public Signature(String name, Class... parameters)
  |                                       ^^^^^^^^^^^^^^^^^^^
  | Syntax error, varargs are only available if source level is 5.0
  | ----------
  | 33. ERROR in Signature.java (at line 237)
  |         public Signature(String name, String... parameters)
  |                                       ^^^^^^^^^^^^^^^^^^^^
  | Syntax error, varargs are only available if source level is 5.0
  | ----------
  | 33 problems (33 errors)

But the java-Version is (from the same console): 

java -version
  | java version "1.5.0_13"
  | Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_13-b05)
  | Java HotSpot(TM) Client VM (build 1.5.0_13-b05, mixed mode, sharing)

What the hack is going wrong here?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4101861#4101861

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4101861



More information about the jboss-user mailing list