Bug 22390 - IBM 1.4 VMs don't have rt.jar
Summary: IBM 1.4 VMs don't have rt.jar
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 2.0   Edit
Hardware: Other All
: P1 normal (vote)
Target Milestone: 2.1 M2   Edit
Assignee: Darin Wright CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 21765 23920 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-08-13 11:29 EDT by Joe Szurszewski CLA
Modified: 2002-10-11 12:33 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joe Szurszewski CLA 2002-08-13 11:29:00 EDT
IBM 1.4 series VMs no longer keep all Java classes in an rt.jar file.  Instead, they are broken up 
across seven different files, core.jar, graphics.jar, security.jar, etc.  Should we add a new VM 
install type so that users don't have to manually add these seven jar files to the classpath?
Comment 1 Darin Wright CLA 2002-08-13 11:38:28 EDT
It sounds like we need an "IBM 1.4.x" VM install type to handle this. It should 
mostly be a simple subclass of the standard VM install type.

Comment 2 Joe Szurszewski CLA 2002-08-22 12:37:48 EDT
*** Bug 21765 has been marked as a duplicate of this bug. ***
Comment 3 Darin Wright CLA 2002-10-04 10:25:28 EDT
*** Bug 23920 has been marked as a duplicate of this bug. ***
Comment 4 Darin Wright CLA 2002-10-08 08:49:07 EDT
The jars that appear on the bootpath by default are (As found by the system 
property "sun.boot.class.path"):

core.jar
graphics.jar
security.jar
server.jar
xml.jar
charsets.jar

(I wonder if the org.apache.xerces will conflict with the version in Eclipse - 
i.e. in xml.jar).
Comment 5 Joe Szurszewski CLA 2002-10-09 15:00:27 EDT
Fixed.  The StandardVMType now recognizes and handles IBM 1.4 type VMs.  Please verify Darin W.
Comment 6 Darin Wright CLA 2002-10-09 17:38:46 EDT
Found that the new support which uses "java -version" to determine which 
libraries to use, causes DOS consoles to open/close. Not sure what happens on 
linux.
Comment 7 Joe Szurszewski CLA 2002-10-10 18:37:04 EDT
Fixed console problem.  Also implemented caching of the 'java -version' output for performance.  
There is still one odd problem I can't pin down.  The progress monitor doing a VM search in the pref. 
dialog now acts like each VM is a new search, where as it used to just crawl from left to right once for 
all VMs.  This seems like it might hurt performance.  Will investigate.
Comment 8 Joe Szurszewski CLA 2002-10-10 18:46:50 EDT
It looks like we're explicitly subTasking each new potential install location.  Maybe it's more 
noticeable now that searching is slower.
Comment 9 Joe Szurszewski CLA 2002-10-10 18:47:01 EDT
Please verify, Darin W.
Comment 10 Darin Wright CLA 2002-10-11 09:47:07 EDT
The VM search works, but launching 1.4 failed:

NOTE: the command line is trying invoke a javaw in \bin, but my install does 
not have a \bin. I only have \jre\bin.

!ENTRY org.eclipse.debug.ui 4 120 Oct 11, 2002 09:03:23.733
!MESSAGE Error logged from Debug UI: 
!STACK 1
org.eclipse.core.runtime.CoreException[150]: java.io.IOException: 
CreateProcess: D:\ibm1.4\bin\javaw -classpath d:\testspaces\test-
space\JUnit\bin;d:\testspaces\test-space\JUnit\junit3.8.1\junit.jar -Xdebug -
Xnoagent -Djava.compiler=NONE -
Xrunjdwp:transport=dt_socket,suspend=y,address=localhost:7242 
junit.samples.VectorTest error=2
	at java.lang.Win32Process.create(Native Method)
	at java.lang.Win32Process.<init>(Win32Process.java:63)
	at java.lang.Runtime.execInternal(Native Method)
	at java.lang.Runtime.exec(Runtime.java:566)
	at org.eclipse.jdt.launching.AbstractVMRunner.exec
(AbstractVMRunner.java:72)
	at org.eclipse.jdt.internal.launching.StandardVMDebugger.run
(StandardVMDebugger.java:181)
	at 
org.eclipse.jdt.internal.launching.JavaLocalApplicationLaunchConfigurationDelega
te.launch(JavaLocalApplicationLaunchConfigurationDelegate.java:97)
	at org.eclipse.debug.internal.core.LaunchConfiguration.launch
(LaunchConfiguration.java:140)
	at 
org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationDialog$11.
run(LaunchConfigurationDialog.java:2283)
	at org.eclipse.jface.operation.ModalContext$ModalContextThread.run
(ModalContext.java:98)
!ENTRY org.eclipse.jdt.launching 4 150 Oct 11, 2002 09:03:23.743
!MESSAGE Exception starting process: D:\ibm1.4\bin\javaw -classpath 
d:\testspaces\test-space\JUnit\bin;d:\testspaces\test-space\JUnit\junit3.8.1
\junit.jar -Xdebug -Xnoagent -Djava.compiler=NONE -
Xrunjdwp:transport=dt_socket,suspend=y,address=localhost:7242 
junit.samples.VectorTest
!STACK 0
java.io.IOException: CreateProcess: D:\ibm1.4\bin\javaw -classpath 
d:\testspaces\test-space\JUnit\bin;d:\testspaces\test-space\JUnit\junit3.8.1
\junit.jar -Xdebug -Xnoagent -Djava.compiler=NONE -
Xrunjdwp:transport=dt_socket,suspend=y,address=localhost:7242 
junit.samples.VectorTest error=2
	at java.lang.Win32Process.create(Native Method)
	at java.lang.Win32Process.<init>(Win32Process.java:63)
	at java.lang.Runtime.execInternal(Native Method)
	at java.lang.Runtime.exec(Runtime.java:566)
	at org.eclipse.jdt.launching.AbstractVMRunner.exec
(AbstractVMRunner.java:72)
	at org.eclipse.jdt.internal.launching.StandardVMDebugger.run
(StandardVMDebugger.java:181)
	at 
org.eclipse.jdt.internal.launching.JavaLocalApplicationLaunchConfigurationDelega
te.launch(JavaLocalApplicationLaunchConfigurationDelegate.java:97)
	at org.eclipse.debug.internal.core.LaunchConfiguration.launch
(LaunchConfiguration.java:140)
	at 
org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationDialog$11.
run(LaunchConfigurationDialog.java:2283)
	at org.eclipse.jface.operation.ModalContext$ModalContextThread.run
(ModalContext.java:98)
Comment 11 Darin Wright CLA 2002-10-11 09:57:48 EDT
The issue is now with the StandardVMRunner/Debugger. It does not account for a 
jre install without a "bin" (i.e. a JRE vs and SDK).
Comment 12 Joe Szurszewski CLA 2002-10-11 12:02:30 EDT
OK, think I got it this time.  the vm runner tries jre/bin, then bin.
Comment 13 Joe Szurszewski CLA 2002-10-11 12:02:47 EDT
Please verify (yet again) Darin W.
Comment 14 Darin Wright CLA 2002-10-11 12:33:35 EDT
Verified.