|
|
Re: Java Development related questions. [message #758655 is a reply to message #758648] |
Thu, 24 November 2011 01:39   |
Eclipse User |
|
|
|
- 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 03:38] by Moderator
|
|
|
|
|
|
Re: Java Development related questions. [message #759255 is a reply to message #759246] |
Mon, 28 November 2011 00:37   |
Eclipse User |
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05749 seconds