Skip to main content



      Home
Home » Newcomers » Newcomers » Could not find Java SE - but unusual behaviour...(A twist on the usual question - please read!)
Could not find Java SE - but unusual behaviour... [message #651888] Tue, 01 February 2011 16:52 Go to next message
Eclipse UserFriend
Hi all.

I have Eclipse installed on a network location.
The clients map this location as a drive N:
Clients are Win 7 32bit, domain joined.
Java 6 SE Runtime
Tests are performed as admin.

On PC1, I launch N:\eclipse\eclipse.exe and eclipse starts perfectly.

On PC2, I launch N:\eclipse\eclipse.exe and receive the error:
Error: Could not find Java SE Runtime Environment..

Either of these solutions work to fix PC2:
-vm <path to java>
Modify "PATH" environment variable



However, I am curious to know why this works on PC1 but not PC2. Both PCs:
- have the same base image of Win7 32bit.
- have Java SE 6 installed, JRE and JDK.
- DO NOT have the Java directories in their PATH statement.
- Are not using the -vm switch in the ini file on the N: drive.

So, really I need to know how PC1 is managing to find the java runtime directory. I understand this can be solved with the fixes noted above, but it appears that it shouldn't need fixed in those ways. If it works on the first machine, then there must be some other setting that lets it know where to find Java.

The PCs ARE different as they have been in use for 4 or 5 months and will have different software from one another, so another application may have caused a conflict?

eclipse.ini
-startup
plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519
-product
org.eclipse.epp.package.php.product
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx256m


I think that was the default installation ini.


Any ideas?
Re: Could not find Java SE - but unusual behaviour... [message #651909 is a reply to message #651888] Tue, 01 February 2011 22:43 Go to previous messageGo to next message
Eclipse UserFriend
On Tue, 2011-02-01 at 16:52 -0500, gumtreeaccount@gmail.com wrote:
> Hi all.
>
> I have Eclipse installed on a network location.
> The clients map this location as a drive N:
> Clients are Win 7 32bit, domain joined.
> Java 6 SE Runtime
> Tests are performed as admin.
>
> On PC1, I launch N:\eclipse\eclipse.exe and eclipse starts perfectly.
>
> On PC2, I launch N:\eclipse\eclipse.exe and receive the error:
> Error: Could not find Java SE Runtime Environment..
>
> Either of these solutions work to fix PC2:
> -vm <path to java>
> Modify "PATH" environment variable
>
>
> However, I am curious to know why this works on PC1 but not PC2. Both PCs:
> - have the same base image of Win7 32bit.
> - have Java SE 6 installed, JRE and JDK.
> - DO NOT have the Java directories in their PATH statement.
> - Are not using the -vm switch in the ini file on the N: drive.
>
> So, really I need to know how PC1 is managing to find the java runtime directory. I understand this can be solved with the fixes noted above, but it appears that it shouldn't need fixed in those ways. If it works on the first machine, then there must be some other setting that lets it know where to find Java.
>
> The PCs ARE different as they have been in use for 4 or 5 months and will have different software from one another, so another application may have caused a conflict?
>

What messages do you receive if you run the command java -version from a
command prompt on both PC1 and PC2?


> eclipse.ini
>
> -startup
> plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715. jar
> --launcher.library
> plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200 .v20090519
> -product
> org.eclipse.epp.package.php.product
> --launcher.XXMaxPermSize
> 256M
> -showsplash
> org.eclipse.platform
> --launcher.XXMaxPermSize
> 256m
> -vmargs
> -Dosgi.requiredJavaVersion=1.5
> -Xms40m
> -Xmx256m
>
>
> I think that was the default installation ini.
>
>
> Any ideas?
Re: Could not find Java SE - but unusual behaviour... [message #651974 is a reply to message #651909] Wed, 02 February 2011 05:29 Go to previous messageGo to next message
Eclipse UserFriend
David Wegener wrote on Tue, 01 February 2011 22:43
What messages do you receive if you run the command java -version from a
command prompt on both PC1 and PC2?


Fantastic!

PC1 shows Java 1.6.0.22.

PC2 shows:
Registry key 'Software\JavaSoft\Java Runtime Environment\CurrentVersion'
has value '1.5', but '1.6' is required.
Error: could not find java.dll
Error: could not find Java SE Runtime Environment.

Someone had installed 1.5 JDK.
If I change the registry key back to 1.6 everything works perfectly.

I should have thought about running Java -version before.
I hadn't noticed that suggestion in any docs, but it should've been the first point to look for me.

Thanks for taking the time to respond to the thread.
Re: Could not find Java SE - but unusual behaviour... [message #653214 is a reply to message #651974] Tue, 08 February 2011 15:59 Go to previous message
Eclipse UserFriend
On 2/2/11 5:29 AM, gumtreeaccount@gmail.com wrote:
> David Wegener wrote on Tue, 01 February 2011 22:43
>> What messages do you receive if you run the command java -version from a
>> command prompt on both PC1 and PC2?
>
>
> Fantastic!
>
> PC1 shows Java 1.6.0.22.
>
> PC2 shows:
> Registry key 'Software\JavaSoft\Java Runtime Environment\CurrentVersion'
> has value '1.5', but '1.6' is required.
> Error: could not find java.dll
> Error: could not find Java SE Runtime Environment.
>
> Someone had installed 1.5 JDK.
> If I change the registry key back to 1.6 everything works perfectly.
>
> I should have thought about running Java -version before.
> I hadn't noticed that suggestion in any docs, but it should've been the
> first point to look for me.
>
> Thanks for taking the time to respond to the thread.

You might want to consider sharing a JDK 6 installation on the network
share and then pointing to it using -vm[1]. That way, you guarantee
which version of Java is being used to run Eclipse at all times, and can
even change it easily if need be.

Eric
[1] As described in http://wiki.eclipse.org/Eclipse.ini
Previous Topic:Does eclipse provide any underlying facilities to retrieve data from remote systems
Next Topic:Plugins! How do i use them?
Goto Forum:
  


Current Time: Sat Jul 12 11:15:26 EDT 2025

Powered by FUDForum. Page generated in 0.07649 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top