Gnutella Forums

Gnutella Forums (https://www.gnutellaforums.com/)
-   Feature Requests & Bug Reports (https://www.gnutellaforums.com/feature-requests-bug-reports/)
-   -   Java 6 required now? (https://www.gnutellaforums.com/feature-requests-bug-reports/67066-java-6-required-now.html)

ploxiln February 11th, 2007 06:48 PM

Java 6 required now? (nevermind)
 
When starting the latest Phex 3.0.2.100 on a computer with java 5 update 8, I get a "class name error" or something like that in a terminal (and otherwise nothing, no program start at all). Sorry I can't easily provide the exact error since I updated to Java 6 and the problem was solved. This occurred on Mac OSX and windows.

EDIT: I rebuilt with 1.5, I couldn't figure out how to force 1.5 compatibility when building with 1.6

arne_bab February 12th, 2007 02:26 AM

We don't yet have plans to require Java 6 (I think this info can be interesting even though the problem is fixed :) ).

Did you build Phex yourself from the start, or did you use the compiled version?

Best wishes,
Arne

GregorK February 12th, 2007 03:18 AM

Runs perfectly fine of Java 5 for me. I usually do releases on a system that only has Java 5 installed, so this would wonder me a little. But we already had accidental version jumps creep in before..

To force Java 5 compatibility use the option -source 1.5
But for my understanding this is only related to language features, it will still use the Java 6 bootclasspath for API lookup. You would need to adjust to use a Java 5 bootclasspath yourself.

This is what my windows debug exe output is telling me... startup was fine and no errors or anything visible...

Quote:

ResourceManager resource configuration:
- Resource category: JAVA
- Current directory: C:\Program Files\Phex_3.0.2.100\
- Property count: 13
- Property: =
- Property: arguments=
- Property: classpath=lib\phex.jar
- Property: currentdir=
- Property: embedjar=false
- Property: javapropertiescount=0
- Property: jvmsearch=registry;javahome;jrepath;jdkpath;exepat h;jview
- Property: mainclassname=phex.Main
- Property: maxversion=
- Property: minversion=1.5
- Property: skel_Debug=1
- Property: skel_Message=Java has not been found on your computer. Do you want
to download it?
- Property: skel_PressKey=1
Now searching the JVM installed on the system...
JVM Lookup: found VM (V(1)(5)(0)) in registry.
JVM Lookup: found VM (V(1)(5)(0)) in registry.
JVM Lookup: found VM (V(1)(5)(0)) in registry.
JVM Lookup: found VM (V(1)(5)(0)) in registry.
JVM Lookup: Env-Var JAVA_HOME not defined on this system.
JVM Lookup: Env-Var JRE_HOME not defined on this system.
JVM Lookup: Env-Var JDK_HOME not defined on this system.
Current directory is C:\Program Files\Phex_3.0.2.100\
JSmooth will now try to use the VM in the following order: registry;javahome;jre
path;jdkpath;exepath;jview
------------------------------
Trying to use a JVM defined in the registry (4 available)
VM will be tried in the following order: 1.5.0;1.5.0;1.5.0;1.5.0;
- Trying registry: <D:\Program Files\Java\jre1.5.0_08><D:\Program Files\Java\jre
1.5.0_08\bin\client\jvm.dll><1.5.0>
DONT USE CONSOLE == FALSE
RUN PROC registry ... 1.5.0 <= 1.5.0<= 0.0.0
RUN PROC... version OK
RUNVM12PROC
Running new proc for D:\Program Files\Java\jre1.5.0_08\bin\java.exe
ClassPath element 0=C:\Program Files\Phex_3.0.2.100\lib\phex.jar
ADDCP= C:\Program Files\Phex_3.0.2.100\lib\phex.jar;
CLASSNAME = <phex.Main>
COMMAND LINE: D:\Program Files\Java\jre1.5.0_08\bin\java.exe -classpath ";C:\Program Files\Phex_3.0.2.100\lib\phex.jar;" phex.Main
RESULT: 1
WAITING: 1
WAIT ENDED

ploxiln February 12th, 2007 06:51 AM

Yeah i was building myself, sorry for the alarm... I sort of figured it out later that the only convenient way to build with jvm 1.5 compatibility was to build on a machine with java 1.5.

arne_bab February 13th, 2007 12:31 AM

No problem.

It's better for us if you write a bit too early than if you don't write at all :)

In that respect: Thanks for writing!

Shawn Pringle April 28th, 2007 03:57 AM

Java 1.5 for Mac OS X
 
Did you get Java 1.5 for Mac OS X Intel or PPC?

If you were able to get 1.5 for PPC, where did you get it? I have been to sun.com and I get apple's auto update feature on all the time by default and when I went to download the latest version of Java the only supported platforms were Mac OS X Intel, Windows, Linux, and Solaris.

:mad: So much for 'write once run anywhere'

GregorK April 28th, 2007 06:03 AM

This might do it?

http://www.apple.com/support/downloa...4release5.html


All times are GMT -7. The time now is 01:43 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 ©2011, Crawlability, Inc.

Copyright © 2020 Gnutella Forums.
All Rights Reserved.