Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Java Development related questions.(Compiler questions.)
icon5.gif  Java Development related questions. [message #758640] Thu, 24 November 2011 03:47 Go to next message
Zachary1234 Missing name is currently offline Zachary1234 Missing nameFriend
Messages: 9
Registered: November 2011
Junior Member
-Does the eclipse project have it's own java compiler, independent of the gnu eclipse compiler?

-Is there such a compiler for Linux and Windows?

-Is there a 32 and 64 bit implementation of said compiler for Windows?

-Is there a java class compiler which makes multi-platform java class files less easy to visually read and interpret (unlike Sun/Oracle/GNU) class compilation efforts?

-Does the eclipse "indigo" java standard edition editor come with a
gui construction/widget graphical user interface construction palette
that allows for graphical/physical editing of a GUI that generates java source code behind the scenes?

[Updated on: Thu, 24 November 2011 04:32]

Report message to a moderator

Re: Java Development related questions. [message #758648 is a reply to message #758640] Thu, 24 November 2011 05:36 Go to previous messageGo to next message
Deepak Azad is currently offline Deepak AzadFriend
Messages: 543
Registered: July 2009
Senior Member
On 11/24/2011 9:17 AM, Zachary1234 wrote:
> Does the eclipse project have it's own java compiler, independent of the
> gnu eclipse compiler?
Eclipse has its own Java compiler, see
http://blog.deepakazad.com/2010/05/ecj-eclipse-java-compiler.html

I think GNU uses the Eclipse compiler, see
http://gcc.gnu.org/java/index.html

> Is there such a compiler for Linux and Windows?
> Is there a 32 and 64 bit implementation of said compiler for Windows?
The Eclipse compiler is available for all the platforms that Eclipse is
available on, i.e all the platforms mentioned on the download page
http://download.eclipse.org/eclipse/downloads/drops/R-3.7.1-201109091335/index.php

--
Deepak Azad
http://wiki.eclipse.org/JDT/FAQ
icon5.gif  Re: Java Development related questions. [message #758655 is a reply to message #758648] Thu, 24 November 2011 06:39 Go to previous messageGo to next message
Zachary1234 Missing name is currently offline Zachary1234 Missing nameFriend
Messages: 9
Registered: November 2011
Junior Member
- Is the eclipse compiler for java (ecj) part of the java development toolkit (jdt),
part of the eclipse jdk? Is the eclipse jdk the thing to download?

I have given that a go, and found the .class dead easy to read just by looking.

If I am compiling an enterprise java bean for a client I must have .class files.
I don't seem to be able to compile a non-main method classes or interfaces in gcj, since the following attempt fails (without any reference to some main method class):

gcj ClassFileA.java -o ClassFileA.bin
gcj ClassFileA.java -o ClassFileB.bin
gcj ClassFileA.java -o ClassFileC.bin

Say I am using java annotations, and a more recent version of JBoss to load the .ear ejb file and ejb. If the java bytecode compiles for my ejb must compile to a .class file, there isn't much security from client inspection for that. Can someone tell me what the advised .class approach is with EJB 3.0 (annotated) EJB's compiled to either class or binary files, with the following related files (3.0 includes some backwards compatability), particularly if I wish to use a non-commercial publicly available java compiler:

ClassFileA.java LocalHome implementing/annotated interface.
ClassFileB.java EJBObject Remote Object implementing/annotated interface.
ClassFileC.java SessionBean EJB core implementing, possibly annotated class.

?

[Updated on: Thu, 24 November 2011 08:38]

Report message to a moderator

Re: Java Development related questions. [message #758701 is a reply to message #758655] Thu, 24 November 2011 10:09 Go to previous messageGo to next message
Deepak Azad is currently offline Deepak AzadFriend
Messages: 543
Registered: July 2009
Senior Member
On 11/24/2011 12:09 PM, Zachary1234 wrote:
> Is the eclipse compiler for java (ecj) part of the java development
> toolkit (jdt),
Yes

> part of the eclipse jdk?
There is no such thing as 'Eclipse JDK'.

> Is the eclipse jdk the thing to download?
Eclipse uses ECJ, you can also download the batch compiler separately.
As mentioned on the blog look for 'JDT Core Batch Compiler' section on
the download page.

--
Deepak Azad
http://wiki.eclipse.org/JDT/FAQ
Re: Java Development related questions. [message #759246 is a reply to message #758701] Mon, 28 November 2011 03:00 Go to previous messageGo to next message
Zachary1234 Missing name is currently offline Zachary1234 Missing nameFriend
Messages: 9
Registered: November 2011
Junior Member
- Is the eclipse compiler for java (ecj) part of the java development toolkit (jdt),
part of the eclipse jdk? Is the eclipse jdk the thing to download?

I have given that a go, and found the .class dead easy to read just by looking.

If I am compiling an enterprise java bean for a client I must have .class files.
I don't seem to be able to compile a non-main method classes or interfaces in gcj.

Say I am using java annotations, and a more recent version of JBoss to load the .ear file and ejb. If the java bytecode compiler for my ejb.java must compile to a .class file, there isn't much security from client inspection of the .class file. Can someone tell me what the advised .class approach is with EJB 3.0 (annotated) EJB's compiled to either class or binary files, with the following related files (3.0 includes some backwards compatability), particularly if I wish to use a non-commercial publicly available java compiler:

ClassFileA.java LocalHome implementing/annotated interface.
ClassFileB.java EJBObject Remote Object implementing/annotated interface.
ClassFileC.java SessionBean EJB core implementing, possibly annotated class.

?

Where should I look for a $0 for commercial use, publically available .java compiler to .class bytecode that can't be so easily inspected visually and interpreted?
Re: Java Development related questions. [message #759254 is a reply to message #759246] Mon, 28 November 2011 05:35 Go to previous messageGo to next message
Deepak Azad is currently offline Deepak AzadFriend
Messages: 543
Registered: July 2009
Senior Member
On 11/28/2011 8:30 AM, Zachary1234 wrote:
> - Is the eclipse compiler for java (ecj) part of the java development
> toolkit (jdt),
> part of the eclipse jdk? Is the eclipse jdk the thing to download?
>
> I have given that a go, and found the .class dead easy to read just by
> looking.

Eclipse compiler is not much different from 'javac' in terms of being
able to visually inspect class files.

> Where should I look for a $0 for commercial use, publically available
> .java compiler to .class bytecode that can't be so easily inspected
> visually and interpreted?
I think there are some commercial tools available which claim to do
this, but I don't recall any tool which does this in the open source world.

--
Deepak Azad
http://wiki.eclipse.org/JDT/FAQ
Re: Java Development related questions. [message #759255 is a reply to message #759246] Mon, 28 November 2011 05:37 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
You can download the ecj (JDT Core Batch Compiler) from
http://download.eclipse.org/eclipse/downloads/drops/R-3.7.1-201109091335/index.php
naturally if you download e.g. the default Eclipse SDK you'll get the
ecj as well.

Am 28.11.11 04:00, schrieb Zachary1234:
> - Is the eclipse compiler for java (ecj) part of the java development
> toolkit (jdt),
> part of the eclipse jdk? Is the eclipse jdk the thing to download?
>
> I have given that a go, and found the .class dead easy to read just by
> looking.
>
> If I am compiling an enterprise java bean for a client I must have
> .class files.
> I don't seem to be able to compile a non-main method classes or
> interfaces in gcj.
>

Now you are suddenly talking aboute gcj and not ecj.

> Say I am using java annotations, and a more recent version of JBoss to
> load the .ear file and ejb. If the java bytecode compiler for my
> ejb.java must compile to a .class file, there isn't much security from
> client inspection of the .class file. Can someone tell me what the
> advised .class approach is with EJB 3.0 (annotated) EJB's compiled to
> either class or binary files, with the following related files (3.0
> includes some backwards compatability), particularly if I wish to use a
> non-commercial publicly available java compiler:
>
> ClassFileA.java LocalHome implementing/annotated interface.
> ClassFileB.java EJBObject Remote Object implementing/annotated interface.
> ClassFileC.java SessionBean EJB core implementing, possibly annotated
> class.
>
> ?

Not sure what you are trying to say us here but anyways and why you
think you need to compile things your own setting up ecj because there
are builds tools, the IDEs export features, ...

>
> Where should I look for a $0 for commercial use, publically available
> .java compiler to .class bytecode that can't be so easily inspected
> visually and interpreted?

See the link above.

Tom
Re: Java Development related questions. [message #759257 is a reply to message #759255] Mon, 28 November 2011 06:16 Go to previous messageGo to next message
Zachary1234 Missing name is currently offline Zachary1234 Missing nameFriend
Messages: 9
Registered: November 2011
Junior Member
Where should I look for a $0 for commercial use, publically available
.java compiler to .class bytecode that can't be so easily inspected
visually and interpreted?

Is there anyone else out there who can reply to me here with an example or such a java compiler
or a web URL to look at?
Re: Java Development related questions. [message #759350 is a reply to message #759257] Mon, 28 November 2011 13:18 Go to previous messageGo to next message
Satyam Kandula is currently offline Satyam KandulaFriend
Messages: 444
Registered: July 2009
Senior Member
There are some class file obfuscators that you could try to use. You could even encrypt your class files and use your own class loader or decrypt and load the class file.
Re: Java Development related questions. [message #759371 is a reply to message #759257] Mon, 28 November 2011 13:49 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Am 28.11.11 07:16, schrieb Zachary1234:
> Where should I look for a $0 for commercial use, publically available
> java compiler to .class bytecode that can't be so easily inspected
> visually and interpreted?
>
> Is there anyone else out there who can reply to me here with an example
> or such a java compiler
> or a web URL to look at?

http://proguard.sourceforge.net/

Tom
Re: Java Development related questions. [message #759523 is a reply to message #759371] Mon, 28 November 2011 22:54 Go to previous messageGo to next message
Zachary1234 Missing name is currently offline Zachary1234 Missing nameFriend
Messages: 9
Registered: November 2011
Junior Member
I have already used proguard obfuscation, and found that it isn't too
effective on small java classes.

Where should I look for a $0 for commercial use, publically available
java compiler to .class bytecode that can't be so easily inspected
visually and interpreted?

Is there anyone else out there who can reply to me here with an example
or such a java compiler or a web URL to look at?
Re: Java Development related questions. [message #765981 is a reply to message #759523] Thu, 15 December 2011 02:53 Go to previous messageGo to next message
Juluia  is currently offline Juluia Friend
Messages: 5
Registered: December 2011
Junior Member
Good post and replies. They are help for me, as a java beginner. I wanna use java to write a java barcode generator, which I saw from Onbarcode. It is easy-use, I want to write one like it. Do you have any good suggestions?
Re: Java Development related questions. [message #1244330 is a reply to message #765981] Wed, 12 February 2014 07:13 Go to previous messageGo to next message
mariah sharp is currently offline mariah sharpFriend
Messages: 6
Registered: July 2013
Junior Member
as for java programmer, i created www.keepautomation.com/products/java_barcode/barcodes/pdf_417.htmlpdf-417 barcodein java ,and here is the guide: www.keepautomation.com/guide/java_barcode_generator.html

[Updated on: Mon, 30 June 2014 13:46] by Moderator

Report message to a moderator

Re: Java Development related questions. [message #1771851 is a reply to message #758640] Thu, 31 August 2017 12:04 Go to previous messageGo to next message
Movila Razvan is currently offline Movila RazvanFriend
Messages: 1
Registered: August 2017
Junior Member
Hello , I have some problems with this project. My friend did this project and I can t understand what's going on with an error, after compilation: "Unable to find an Ant file" ... can someone help me or correct my project. Thank you a lot!
Re: Java Development related questions. [message #1772937 is a reply to message #1771851] Tue, 19 September 2017 06:05 Go to previous messageGo to next message
Eclipse UserFriend
1. The Java compiler that comes with Eclipse is not the standard javac compiler you get with the Java SDK. Nope, it's a completely separate compiler.

3. Yes. Even on 32 bit machines the .NET Framework provides System.Int64, many C/C++ compilers provide long long/__int64. Obviously the operations on such types, on 32 bit machines, are somehow emulated . For this reason they are available, but are not used unless necessary.
Re: Java Development related questions. [message #1779223 is a reply to message #1772937] Thu, 04 January 2018 07:58 Go to previous message
Samrina Rajpoot is currently offline Samrina RajpootFriend
Messages: 1
Registered: January 2018
Junior Member

You could even encrypt your class files and use your own class loader or decrypt and load the class file.

Previous Topic:Java I/O and Argument Passing Inside Eclipse
Next Topic:Maven library not found when I test an Eclipse Plug-In
Goto Forum:
  


Current Time: Tue Apr 23 17:31:23 GMT 2024

Powered by FUDForum. Page generated in 0.04622 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top