Share

JettyLauncher

Tracker: Bugs

5 Support for Java 6.0 - ID: 1458079
Last Update: Settings changed ( eelco12 )

I tried to a build from the latest checkout in Eclipse
3.2 M5 with Java 6.0 b76 and Jetty wasn't able to
determine the VM version when I tried to launch an app.


Nobody/Anonymous ( nobody ) - 2006-03-24 23:52

5

Closed

None

Nobody/Anonymous

None

None

Public


Comments ( 8 )




Date: 2007-12-09 23:27
Sender: zombi


Please, anyone ... upload that jar file to the update site. I'm not able
to build the plugin locally :(


Date: 2007-07-15 15:34
Sender: nobody

Logged In: NO

I have Eclipse 3.3 in order to fix this. I changed getVMType in
JettyClasspathProvider

import org.eclipse.jdt.launching.IVMInstall2;

private int getVMType(ILaunchConfiguration config)
{
String versionString = null;

IVMInstall install = JavaRuntime.getDefaultVMInstall();
if (install instanceof IVMInstall2) {
IVMInstall2 install2 = (IVMInstall2)install;
versionString = install2.getJavaVersion();
if (versionString.indexOf("1.1") > 0)
{
return VM_11;
}
else if (versionString.indexOf("1.2") >= 0 ||
versionString.indexOf("1.3") >= 0)
{
return VM_12_13;
}
else if (versionString.indexOf("1.4") >= 0 ||
versionString.indexOf("1.5") >= 0
|| versionString.indexOf("1.6") >= 0 ||
versionString.equals("???"))
{
return VM_14_15_16;
}
}
return VM_ERROR;
}


Date: 2007-02-21 21:30
Sender: ojacquetProject Admin


I dropped you a line through the sourceforge contact page. I hope it
reaches you. Subject was "jettylauncher".


Date: 2007-02-21 17:33
Sender: eelco12SourceForge.net SubscriberProject Admin


Cool. We are still looking for people to take over the project. There
seems to be enough interest in it, but the committers (all three) just
can't get to support this anymore. Please drop me a line when you are
interested.


Date: 2007-02-21 16:49
Sender: ojacquetProject Admin


Here http://jax.be/jettylauncher.jar is an updated jar file where the
versionString.equals("???") has been changed to
versionString.indexOf("1.6") >= 0. It doubled in size after I updated it
when the newly compiled JettyClasspathProvider.class but it works!

Put it in eclipse/plugins/com.iw.plugins.jettylauncher_1.4.1.



Date: 2007-02-16 17:32
Sender: ojacquetProject Admin


Any news on when/if this patch is going to make it?


Date: 2006-12-08 00:24
Sender: eldaaranAccepting Donations


Yes, in fact, changing line 397 from:

|| versionString.equals("???"))

to:

|| versionString.indexOf("1.6") >= 0 || versionString.equals("???"))

and recompiling the plugin definitely fixes this problem.

Here's what I've got:

### Eclipse Workspace Patch 1.0
#P com.iw.plugins.jettylauncher
Index: src/com/iw/plugins/jetty/launcher/JettyClasspathProvider.java
===================================================================
RCS file:
/cvsroot/jettylauncher/com.iw.plugins.jettylauncher/src/com/iw/plugins/jetty/launcher/JettyClasspathProvider.java,v
retrieving revision 1.19
diff -u -r1.19 JettyClasspathProvider.java
--- src/com/iw/plugins/jetty/launcher/JettyClasspathProvider.java 11 Oct
2004 10:41:46 -0000 1.19
+++ src/com/iw/plugins/jetty/launcher/JettyClasspathProvider.java 8 Dec
2006 00:23:59 -0000
@@ -394,7 +394,7 @@
return VM_12_13;
}
else if (versionString.indexOf("1.4") >= 0 ||
versionString.indexOf("1.5") >= 0
- || versionString.equals("???"))
+ || versionString.indexOf("1.6") >= 0 ||
versionString.equals("???"))
{
return VM_14_15;
}



Date: 2006-12-07 23:34
Sender: eldaaranAccepting Donations


I did some research, and it looks like the virtual machine versions are
hard coded into the com.iw.plugins.jetty.launcher.JettyClasspathProvider
class. If you scroll to the very end, it's probably a simple fix. I bet
assuming that a 1.6VM behaves the same as a 1.5VM would pretty much solve
our problem. Sun has gone to extraordinary lengths to make sure Java 6.0
has the fewest possible regressions over Java 5.


Log in to comment.




Attached File

No Files Currently Attached

Changes ( 2 )

Field Old Value Date By
status_id Open 2007-12-31 14:54 eelco12
close_date - 2007-12-31 14:54 eelco12