[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-3610) JBDS 2.0.0.CR1 Uses Java 6 when environment only has Java 5

Aaron Pestel (JIRA) jira-events at lists.jboss.org
Thu Jan 22 11:18:44 EST 2009


    [ https://jira.jboss.org/jira/browse/JBIDE-3610?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12449237#action_12449237 ] 

Aaron Pestel commented on JBIDE-3610:
-------------------------------------

I'm now running into this same issue with a jBPM project.  When I add a custom Java action to the jBPM process and deploy to the server, I get this error when running the process:

java.lang.UnsupportedClassVersionError: Bad version number in .class file

Unfortunately, I haven't found a way yet to change the jBPM project facet to Java 5 instead of Java 6 and setting the Java compliance level to 1.5 doesn't seem to help.  If you have suggestions, please let me know.  I'll keep looking as well.

> JBDS 2.0.0.CR1 Uses Java 6 when environment only has Java 5
> -----------------------------------------------------------
>
>                 Key: JBIDE-3610
>                 URL: https://jira.jboss.org/jira/browse/JBIDE-3610
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: esb
>         Environment: JBoss Developer Studio
> Version: 2.0.0.CR1
> Build id: R200812221144
> Build date: 12/22/2008 11:54
> Java 1.5.0_16
>            Reporter: Aaron Pestel
>            Assignee: John Graham
>            Priority: Minor
>             Fix For: 3.0.0.GA
>
>
> I'm quite sure the only JVM I have on my machine is Java 1.5.  If I say "which java", "java -version", "$JAVA_HOME/bin/java -version", "$JAVA_HOME/jre/bin/java -version", they are all Java 1.5.0_16.  I downloaded the new JBDS 2.0.0.CR1 from the download site and did no configuration to it, just started it by default (what configuration it may have picked up from previous JBDS versions I've run, is something I don't know, but other customers will likely have the same scenario, at least some of them).
> When I start JBDS, I've dumped the configuration from Help | About | Configuration, and it's running with a 1.5.0_16 JVM.  When I go to create a new server runtime so that I can have a SOA-P 4.3 server, the only JVM available to me is 1.5.0_16.  If I look in Eclipse at "Preferences | Java | Installed JREs", the only JRE installed is 1.5.0_16.  So, I create my SOA-P 4.3 runtime, create a simple ESB project and deploy it to the SOA-P 4.3 server.  Everything works fine until I add a custom Java action to my ESB project.  In that case, by default, it compiles the Java class with Java 1.6 (from where, I don't know, maybe a plugin that ships with Eclipse/JBDS?), and the ESB project fails to deploy on the SOA-P server with a class version mismatch exception.
> I can change my ESB project preferences to use the Java 5 facet, and everything works fine.  I was surprised that I had to change my ESB project preferences from Java 6 to Java 5 when I don't think I even have Java 1.6 installed on my machine and when I'm not even sure if SOA-P 4.3 actually works with Java 1.6.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jbosstools-issues mailing list