I unziped fantom 1.0.47 into /c/dev/fantom-1.0.47 I am running cygwin. I have: JAVA_HOME=S:\pdh\head\dev\jdk160_13 FAN_HOME=/c/dev/fantom-1.0.47 PATH=/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/c/WINDOWS/system32:/c/WINDOWS:/c/WINDOWS/System32/Wbem:/s/pdh/head/dev/jdk160_13/bin:/c/dev/fan/bin $ which fan /c/dev/fan/bin/fan $ javac -version javac 1.6.0_13
Cannot run fan:
$ fan -verson java.lang.NoClassDefFoundError: fanx/tools/Fan Caused by: java.lang.ClassNotFoundException: fanx.tools.Fan
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
Could not find the main class: fanx.tools.Fan. Program will exit. Exception in thread "main"
Just out of curiosity, did you run adm/unixsetup after you unzipped everything? I'm not sure anyone has attempted a Cygwin setup yet.
ivanWed 25 Nov 2009
You can also try to set $FAN_HOME manually, probably it is not determined correctly automatically (take a look to fan/bin/fanlaunch script)
alex_panchenkoWed 25 Nov 2009
It fails because you use windows java, but FAN_HOME is specified in a unix way, so java can't find classes at that location. If you specify it in a windows way (c:/dev/...) it should work.
brianWed 25 Nov 2009
If you are using the bash script, then you shouldn't need to set FAN_HOME at all, just make sure java/bin and fan/bin are in your path. See the bin/fanlauncher bash script.
Although I am not sure anyone has tried Cygwin (on Windows we have a nice exe launcher you can use too).
pavelicaSun 29 Nov 2009
Thank you all! I got fan to work under Cygwin! The most elegant language that I've seen! Thanks.
pavelica Wed 25 Nov 2009
Hi,
I unziped fantom 1.0.47 into /c/dev/fantom-1.0.47 I am running cygwin. I have: JAVA_HOME=S:\pdh\head\dev\jdk160_13 FAN_HOME=/c/dev/fantom-1.0.47 PATH=/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/c/WINDOWS/system32:/c/WINDOWS:/c/WINDOWS/System32/Wbem:/s/pdh/head/dev/jdk160_13/bin:/c/dev/fan/bin $ which fan /c/dev/fan/bin/fan $ javac -version javac 1.6.0_13
Cannot run fan:
$ fan -verson java.lang.NoClassDefFoundError: fanx/tools/Fan Caused by: java.lang.ClassNotFoundException: fanx.tools.Fan
Could not find the main class: fanx.tools.Fan. Program will exit. Exception in thread "main"
Please help!
Thanks,
Pavel [email protected]
tactics Wed 25 Nov 2009
Just out of curiosity, did you run
adm/unixsetup
after you unzipped everything? I'm not sure anyone has attempted a Cygwin setup yet.ivan Wed 25 Nov 2009
You can also try to set $FAN_HOME manually, probably it is not determined correctly automatically (take a look to fan/bin/fanlaunch script)
alex_panchenko Wed 25 Nov 2009
It fails because you use windows java, but FAN_HOME is specified in a unix way, so java can't find classes at that location. If you specify it in a windows way (c:/dev/...) it should work.
brian Wed 25 Nov 2009
If you are using the bash script, then you shouldn't need to set FAN_HOME at all, just make sure java/bin and fan/bin are in your path. See the bin/fanlauncher bash script.
Although I am not sure anyone has tried Cygwin (on Windows we have a nice exe launcher you can use too).
pavelica Sun 29 Nov 2009
Thank you all! I got fan to work under Cygwin! The most elegant language that I've seen! Thanks.