ENIGMA Forums

Contributing to ENIGMA => Proposals => Topic started by: Arcalyth on August 08, 2008, 11:20:29 pm

Title: Linux testing
Post by: Arcalyth on August 08, 2008, 11:20:29 pm
Code: [Select]
arcalyth@phoenix:~/downloads/ENIGMA$ java ./LateralGM-8-8.jar
Exception in thread "main" java.lang.NoClassDefFoundError: ..LateralGM-8-8.jar
   at gnu.java.lang.MainThread.run(libgcj.so.90)
Caused by: java.lang.ClassNotFoundException: ..LateralGM-8-8.jar not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:./], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
   at java.net.URLClassLoader.findClass(libgcj.so.90)
   at gnu.gcj.runtime.SystemClassLoader.findClass(libgcj.so.90)
   at java.lang.ClassLoader.loadClass(libgcj.so.90)
   at java.lang.ClassLoader.loadClass(libgcj.so.90)
   at gnu.java.lang.MainThread.run(libgcj.so.90)

It seems the java interface doesn't work. Odd. (Also, why the hell not? I'm guessing it's an issue with my JRE installation, but we'll find out later.)

Code: [Select]
arcalyth@phoenix:~/downloads/ENIGMA$ wine CompileEGMf.exe
Loaded fnames successfully.
Read 122 constants
Read 33 globals
Reading 1066 bytes of locals...
Read 1066 bytes of locals
Read locals successfully.
File not found

Running the compiler with no input file works.

Code: [Select]
arcalyth@phoenix:~/downloads/ENIGMA$ wine CompileEGMf.exe lines2.gm6 #example supplied by melee-master
Loaded fnames successfully.
Read 122 constants
Read 33 globals
Reading 1066 bytes of locals...
Read 1066 bytes of locals
Read locals successfully.

Looks like that worked. Now for the moment of truth:

what the hell? I can't find an exe. anywhere. >_<

edit: k I think I did something wrong with that compiling.
Title: Re: Linux testing
Post by: IsmAvatar on August 08, 2008, 11:41:50 pm
java -jar ./LateralGM-8-8.jar
Title: Re: Linux testing
Post by: Arcalyth on August 08, 2008, 11:45:20 pm
Whoops.

Code: [Select]
arcalyth@phoenix:~/downloads/ENIGMA$ java -jar LateralGM-8-8.jar
Exception in thread "main" java.lang.NoClassDefFoundError: java.util.Scanner
   at org.lateralgm.main.LGM.<clinit>(LGM.java:96)
   at java.lang.Class.initializeClass(libgcj.so.90)
Title: Re: Linux testing
Post by: IsmAvatar on August 09, 2008, 12:16:54 am
java -version
Title: Re: Linux testing
Post by: Arcalyth on August 09, 2008, 01:18:38 am
Code: [Select]
arcalyth@phoenix:~/downloads/ENIGMA$ java -version
java version "1.5.0"
gij (GNU libgcj) version 4.3.1

Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Title: Re: Linux testing
Post by: TGMG on August 09, 2008, 09:10:19 am
Get the latest java 6 it seems yu are using an unofficial java compiler based on GCJ, don't use it, it won't recognise many classes.

try to find the latest JRE for your dist of linux.
Title: Re: Linux testing
Post by: Arcalyth on August 09, 2008, 01:13:18 pm
Code: [Select]
arcalyth@phoenix:/opt/jre1.6.0_07/bin$ java -version
java version "1.6.0_07"
Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
Java HotSpot(TM) Client VM (build 10.0-b23, mixed mode, sharing)

Code: [Select]
arcalyth@phoenix:~/downloads/ENIGMA$ java -jar LateralGM-8-8.jar
Java Version: 10600 (1.6.0_07)
Aug 9, 2008 2:12:05 PM java.util.prefs.FileSystemPreferences$2 run
INFO: Created user preferences directory.
false

Loading lib file 01_move.lgl
Loading lib file 02_main1.lgl
Loading lib file 03_main2.lgl
Loading lib file 04_control.lgl
Loading lib file 05_score.lgl
Loading lib file 06_extra.lgl
Loading lib file 07_draw.lgl

That did it, but after I tried inserting code into an event it locked up my entire desktop and I had to reboot.
Title: Re: Linux testing
Post by: Josh @ Dreamland on August 09, 2008, 08:18:11 pm
That was one of Ism's big booboos. It has to do with the splash screen, somehow.

Linux + Splash Screen + DnD = Fail

They're working on it. That's a big setback...

We'll think of something. In the meantime, ...I don't even know.
Title: Re: Linux testing
Post by: IsmAvatar on August 21, 2008, 10:47:21 am
http://www.ismavatar.com/lgm/forum/index.php?t=11
It's not one of my booboos, it's one of Java/Xlib's booboos. Java 7 will fix this problem. In the meantime, several workarounds are mentioned in the link above.
Title: Re: Linux testing
Post by: sprintf() on September 01, 2008, 06:35:36 pm
I'm running LGM on Ubuntu 8.04, but when I tell it to compile it says Enigma can't be found.
Halp needed ):
Title: Re: Linux testing
Post by: Josh @ Dreamland on October 17, 2008, 07:16:18 pm
It's ENIGMA's booboo now. :(

But yeah, I'll implement one of those in the Linux version