gcj

Why doesn't GCJ find the classes from my imported packages?

戏子无情 提交于 2019-12-07 02:30:20
问题 I want to compile a small Java application to a Windows executable. The application is very small, only a single main class, but it uses Apache POI. When I compile it, everything works fine, as long as I put the POI Jar into the class path argument. But when it comes to linking, GCJ cannot resolve the references the classes in the POI package. The messages are all like this: undefined reference tp 'org::apache::poi:hssf:usermodel:HSSFWorkbook::class$' What do I have to do in order to link my

Why doesn't GCJ find the classes from my imported packages?

*爱你&永不变心* 提交于 2019-12-05 08:13:44
I want to compile a small Java application to a Windows executable. The application is very small, only a single main class, but it uses Apache POI. When I compile it, everything works fine, as long as I put the POI Jar into the class path argument. But when it comes to linking, GCJ cannot resolve the references the classes in the POI package. The messages are all like this: undefined reference tp 'org::apache::poi:hssf:usermodel:HSSFWorkbook::class$' What do I have to do in order to link my application? You have to compile the imported Jars into .so libraries separately. Make sure to provide

JDK, JRE, Java: Version Confusion!

删除回忆录丶 提交于 2019-11-28 21:17:39
Although I'm not a real Java developer (yet), I feel like I should know this by now, but I'm still very confused. My question has two parts: What is the difference between the so-called (as I've seen it) "Sun JDK", OpenJDK, and GCJ ? At various times, I've seen each of the following thrown around, making it very confusing to understand which version numbers actually apply to what. Can someone please help me sort this out? Java 6 Java 1.6 JDK 6 JDK 1.6 JRE 1.6 JVM 11.0 Note: I do understand the difference between the JDK (Java Development Kit) and the Java Runtime Environment. I'm not totally

Java JRE vs GCJ

女生的网名这么多〃 提交于 2019-11-27 23:31:29
I have this results from a speed test I wrote in Java: Java real 0m20.626s user 0m20.257s sys 0m0.244s GCJ real 3m10.567s user 3m5.168s sys 0m0.676s So, what is the purpose of GCJ then? With this results I'm sure I'm not going to compile it with GCJ! I tested this on Linux, are the results in Windows maybe better than that? This was the code from the application: public static void main(String[] args) { String str = ""; System.out.println("Start!!!"); for (long i = 0; i < 5000000L; i++) { Math.sqrt((double) i); Math.pow((double) i, 2.56); long j = i * 745L; String string = new String(String

JDK, JRE, Java: Version Confusion!

空扰寡人 提交于 2019-11-27 13:54:04
问题 Although I'm not a real Java developer (yet), I feel like I should know this by now, but I'm still very confused. My question has two parts: What is the difference between the so-called (as I've seen it) "Sun JDK", OpenJDK, and GCJ ? At various times, I've seen each of the following thrown around, making it very confusing to understand which version numbers actually apply to what. Can someone please help me sort this out? Java 6 Java 1.6 JDK 6 JDK 1.6 JRE 1.6 JVM 11.0 Note: I do understand

Is this valid Java?

拜拜、爱过 提交于 2019-11-27 11:11:23
Is this valid Java? import java.util.Arrays; import java.util.List; class TestWillThatCompile { public static String f(List<String> list) { System.out.println("strings"); return null; } public static Integer f(List<Integer> list) { System.out.println("numbers"); return null; } public static void main(String[] args) { f(Arrays.asList("asdf")); f(Arrays.asList(123)); } } Eclipse 3.5 says yes Eclipse 3.6 says no Intellij 9 says yes Sun javac 1.6.0_20 says yes GCJ 4.4.3 says yes GWT compiler says yes Crowd at my previous Stackoverflow question says no My java theory understanding says no ! It

Calling Java library (JAR) from VBA/VBScript/Visual Basic Classic

我的梦境 提交于 2019-11-27 03:31:25
问题 There is jar library native C++ port is not yet available (as DLL) I need to call from I have 3 possibilities: 1) Wait until native port is ready 2) Use JAR library from VB via brigde (?), installed JRE required 3) Compile JAR into native DLL using GCJ and use it form VBA http://www.microsoft.com/germany/msdn/library/office/OfficeVBAUndDieWindowsAPI.mspx?mfr=true I think: pos. 1 is easy, but I must wait pos. 3 is in practice impossible Is there some ideas about pos. 2? Thanks. 回答1: It depends

Java JRE vs GCJ

那年仲夏 提交于 2019-11-26 21:28:56
问题 I have this results from a speed test I wrote in Java: Java real 0m20.626s user 0m20.257s sys 0m0.244s GCJ real 3m10.567s user 3m5.168s sys 0m0.676s So, what is the purpose of GCJ then? With this results I'm sure I'm not going to compile it with GCJ! I tested this on Linux, are the results in Windows maybe better than that? This was the code from the application: public static void main(String[] args) { String str = ""; System.out.println("Start!!!"); for (long i = 0; i < 5000000L; i++) {

Is GNU's Java Compiler (GCJ) dead? [closed]

这一生的挚爱 提交于 2019-11-26 17:42:40
As of October 2010, is GNU's Java compiler dead? Are there any active alternatives (especially for compiling Java to native code)? LLVM solutions would be preferred. You could use IKVM and Mono 's ahead of time compiler to generate native code. EDIT There is an example at the bottom of this page . A more pertinent question would be whether it was ever really alive. Consider these issues, from its own website: 1.2 support is 'still incomplete'. 1.3 ditto. The project was last updated over a year ago [as of October 2009]. Currently 'supports most of the 1.4 libraries plus some 1.5 additions.'

Is GNU&#39;s Java Compiler (GCJ) dead? [closed]

橙三吉。 提交于 2019-11-26 05:32:15
问题 As of October 2010, is GNU\'s Java compiler dead? Are there any active alternatives (especially for compiling Java to native code)? LLVM solutions would be preferred. 回答1: You could use IKVM and Mono's ahead of time compiler to generate native code. EDIT There is an example at the bottom of this page. 回答2: A more pertinent question would be whether it was ever really alive. Consider these issues, from its own website: 1.2 support is 'still incomplete'. 1.3 ditto. The project was last updated