GCJ 4.1 Windows binary version

Does anyone has GCC/GCJ 4.1 Windows binary version

I had downloaded MingW alongwith which GCC 3.4.5 is available but it does not compile Java1.5 files due to the presence of StringBuilder class

So I had read somewhere that this has been patched out by giving support for this additional class

So If anyone has the GCJ 4.1 binary version then please mail me at csplrj@yahoo.co.in

Bye for now

CSJakharia

gcj --main=com.prathamwoods.Test

--classpath=jasperreports-0.5.3.jar;commons-beanutils.jar;commons-collections.jar;commons-digester.jar;commons-logging.jar;commons-logging-api.jar;JCalendar4.jar;jasperreports-0.6.4.jar

-o Test.exe Pratham.jar

com/common/DerivedLastNoEntity.java: In class

`com.common.DerivedLastNoEntity':

com/common/DerivedLastNoEntity.java: In method

`com.common.DerivedLastNoEntity.getDataValues(java.lang.Object,java.sql.Connection)':

com/common/DerivedLastNoEntity.java:144: error: class

'java.lang.Integer' has no method named 'valueOf'

matching signature '(I)Ljava/lang/Integer;'

com/common/DerivedLastNoEntity.java: In method

`com.common.DerivedLastNoEntity.getUpdateDates(java.util.List)':

com/common/DerivedLastNoEntity.java:305: error: cannot

find file for class java.

lang.StringBuilder

com/common/DerivedLastNoEntity.java:305: error: cannot

find file for class java.

lang.StringBuilder

com/common/DerivedLastNoEntity.java:305: error: cannot

find file for class java.

lang.StringBuilder

com/common/DerivedLastNoEntity.java:305: error: cannot

find file for class java.

lang.StringBuilder

com/common/DerivedLastNoEntity.java:305: error: cannot

find file for class java.

lang.StringBuilder

com/common/DerivedLastNoEntity.java:305: error: cannot

find file for class java.

lang.StringBuilder

com/common/DerivedLastNoEntity.java:305: error: cannot

find file for class java.

lang.StringBuilder

com/common/DerivedLastNoEntity.java:305: error: cannot

find file for class java.

lang.StringBuilder

com/common/DerivedLastNoEntity.java:305: error: cannot

find file for class java.

lang.StringBuilder

com/common/DerivedLastNoEntity.java:309: error: cannot

find file for class java.

lang.StringBuilder

com/common/DerivedLastNoEntity.java:309: error: cannot

find file for class java.

lang.StringBuilder

com/common/DerivedLastNoEntity.java:309: error: cannot

find file for class java.

lang.StringBuilder

com/common/DerivedLastNoEntity.java:309: error: class

'java.lang.StringBuilder'

has no method named '<init>' matching signature '()V'

com/common/DerivedLastNoEntity.java:309: error: cannot

find file for class java.

lang.StringBuilder

com/common/DerivedLastNoEntity.java:309: confused by

earlier errors, bailing out

[3089 byte] By [CSJakhariaa] at [2007-10-2 19:07:30]
# 1
Looks like java 1.5 is not supported.Is it supposed to be supported?
BIJ001a at 2007-7-13 20:47:20 > top of Java-index,Developer Tools,Java Compiler...
# 2
Ya atleast as StringBuilder is concernedas I read in one of the mailing list that a ptach had been made regarding thatBye for nowCSJakharia
CSJakhariaa at 2007-7-13 20:47:20 > top of Java-index,Developer Tools,Java Compiler...
# 3

ditch gcj, it's a mess. Not just the 1.5 additions aren't supported, even things like Swing won't work.

While it may recognise 1.4 classfiles and even some 1.5 classfiles, it lacks almost the entire runtime library so unless you use only things from java.lang and primitives you're out of luck.

jwentinga at 2007-7-13 20:47:20 > top of Java-index,Developer Tools,Java Compiler...
# 4
I couldn't agree more. Every time I have encountered the conjunction of GNU and Java it has been in the contex of a severe problem, and every time the solution has been to forget about the GNU part and use a proper implementation of Java.
ejpa at 2007-7-13 20:47:20 > top of Java-index,Developer Tools,Java Compiler...
# 5

Hi,

I have just experiencing with gcj (mingw 3.4.4 or so).

On some forums I read, that it supports function inlinening.

So:

public static final int MYABS(int a)

{

return (a < 0)?-a:a;

}

public static void main(..)

{

int i = MYABS(-20);

}

should be compiled to:

int i = (-20 < 0)?-20:20;

so the function call overhead could be eliminated this way.

GCC supports this with inline keyword in C/C++, but how does GCJ?

Is there any app, that can do this (in bytecode or source code preprocess mode)?

Thanks for the reply in advance,

Bets Regards,

Ferenc

dmoona at 2007-7-13 20:47:20 > top of Java-index,Developer Tools,Java Compiler...
# 6
sorry just test post...
dmoona at 2007-7-13 20:47:20 > top of Java-index,Developer Tools,Java Compiler...
# 7

Explicit function inlining isn't part of the Java language specification.

The compiler might decide to inline something if the result is known at compile time, but apart from that it can't inline anything because such would cause problems with inheritance.

Effectively only final entities can ever be inlined in Java.

Any "compiler" which does otherwise is in violation of the Java language standard (which in the case of gcj wouldn't surprise me in the least as it's in violation of quite a lot of the standard already).

jwentinga at 2007-7-13 20:47:20 > top of Java-index,Developer Tools,Java Compiler...