Suggestions to improve the JAVA guidelines
by Orcan Ogetbil
Hi,
As I promised overholt on IRC, I wanted to share my views about the Fedora Java packaging guidelines from a non-Java-coder point of view.
JAVA GUIDELINES:
- "JNI-using JAR files"
This link is broken. It can be fixed easily.
- BuildRequires: jpackage-utils
Why do we need this? I understand Requires: jpackage-utils for directory ownership etc, but the BR is not necessary for most packages (at least all the ones I saw so far). I think this should *not* be required.
- In certain cases, we can build applications GCJ-natively (producing .so files). But these won't work with any JVM. What should be the packager's primary preference? GCJ-native or OpenJDK? The first one runs faster, but the second one has larger coverage.
For instance, tuxguitar (that I packaged) provides GNU Makefiles (that use GCJ) for this. Are the resulting .so files going to be the same as the ones built by aot-compile-rpm? (More about AOT later)
This case has confused me a lot in the past.
- Some explanation in the beginning about what GCJ can do and what openjdk can do; and some information about byte-code vs. machine-code will be very useful.
- BuildRequires: java-devel [>= specific_version]
How will the packager get to know the "specific_version"? For openjdk this is 1:1.6.0 , but for GCJ this is 1.5.0 . Are there other numbers that we need to know? Can't we put the numbers for all the cases in the guidelines?
- The Specfile Templates for ant and maven contradict with what was written in the BuildRequires and Requires section.
- the abbreviation "SNPG" should be defined in the first possible place, not in the third iteration (both for ant and maven).
- "Will this preserve the line ending as the this page says it must?"
This would be an artistic ending if we were writing a novel. But I think a guideline shouldn't end with open questions :)
GCJ GUIDELINES:
- It would be nice if there was a definition of GCJ-AOT bits. What do they do? Why do we like them? What does gij do? etc
- "Note: For Fedora versions < 8, no JDK was available other than GCJ so java packages with executable code MUST have the GCJ AOT bits."
This notice can be removed safely.
- The occurences of
%attr(-,root,root)
should be removed.
- GCJ AOT bits SHOULD be built and included in packages.
This needs to be more explicit. ie. 's@in packages@in all Java packages@'. I also think that this sentence should go to JAVA GUIDELINES so people click on the link for "GCJ Guidelines". The way that "GCJ Guidelines" link is put there, doesn't give an impression that it should be visited for any possible Java package.
These are all issues I encountered. If I remember more I will post them here. I thought a review on the guidelines from a Java-ignorant person would help other Java-ignorant people in the future. Thanks for reading :)
-oget
14 years, 1 month
Java/Eclipse beats of the Fedora release notes.
by Mat Booth
It looks like there was neither a writer nor a developer point of
contact for the Java or Eclipse release note beats in F11.
I thought the Eclipse release note left a lot to be desired so I've
put my name down for writing the F12 release note for Eclipse. [1] I
hope that's okay. There can of course be more than one name down if
anyone else wants to contribute.
[1] https://fedoraproject.org/wiki/Documentation_Beats#Changes_in_Fedora_for_...
--
Mat Booth
A: Because it destroys the order of the conversation.
Q: Why shouldn't you do it?
A: Posting your reply above the original message.
Q: What is top-posting?
14 years, 2 months
Does 1.4.2_08 support StringBuffer and Generics
by ohaya@cox.net
Hi,
I had some Java code that I was trying to move to a Redhat machine, but encountered some Java versioning problems. The machine that I was working on had 1.4.2_08 version of gcj, so I tried to compile my source there, but got errors, indicating that it couldn't resolve the StringBuffer class.
That gcj also had problems with Generics in my code, i.e., it didn't like something like:
List<classX> xxxx = new ArrayList<classX>();
So, I was wondering, does that version of gcj support these two things?
Also, if not, then is there a version of gcj that does, or should I get Sun's JDK installed instead?
Thanks,
Jim
14 years, 2 months
Re: [fedora-java] eclipse feature build problem
by Orion Poplawski
On 07/16/2009 11:39 PM, Alexander Kurtakov wrote:
>> java.io.FileNotFoundException:
>> /usr/lib/eclipse/dropins/sdk/plugins/org.eclipse.pde.build_3.4.1.R34x_v2008
>> 1217/scripts/${eclipse.pdebuild.scripts}/genericTargets.xml (No such file or
>> directory)
>>
>> Thoughts?
>
> Is this error from koji or local build?
> If it's local build try moving away ~/.eclipse and try again.
> I guess that this is caused by pdebuild script not switching user.home to a
> new folder but I haven't found the time to investigate.
> Please tell me if this works.
Local build. Moving my ~/.eclipse out of the way fixed it.
--
Orion Poplawski
Technical Manager 303-415-9701 x222
NWRA/CoRA Division FAX: 303-415-9702
3380 Mitchell Lane orion(a)cora.nwra.com
Boulder, CO 80301 http://www.cora.nwra.com
14 years, 2 months
eclipse feature build problem
by Orion Poplawski
I'm trying to build an updated eclipse-photran package on F-11, but getting:
[exec] ls: cannot access ${orbitDepsDir}: No such file or directory
[exec]
/usr/lib/eclipse/dropins/sdk/plugins/org.eclipse.pde.build_3.4.1.R34x_v20081217/templates/package-build
allElements:
BUILD FAILED
/usr/lib/eclipse/dropins/sdk/plugins/org.eclipse.pde.build_3.4.1.R34x_v20081217/scripts/build.xml:24:
The following error occurred while executing this line:
/usr/lib/eclipse/dropins/sdk/plugins/org.eclipse.pde.build_3.4.1.R34x_v20081217/scripts/build.xml:64:
The following error occurred while executing this line:
/usr/lib/eclipse/dropins/sdk/plugins/org.eclipse.pde.build_3.4.1.R34x_v20081217/templates/package-build/customTargets.xml:19:
The following error occurred while executing this line:
java.io.FileNotFoundException:
/usr/lib/eclipse/dropins/sdk/plugins/org.eclipse.pde.build_3.4.1.R34x_v20081217/scripts/${eclipse.pdebuild.scripts}/genericTargets.xml
(No such file or directory)
Thoughts?
--
Orion Poplawski
Technical Manager 303-415-9701 x222
NWRA/CoRA Division FAX: 303-415-9702
3380 Mitchell Lane orion(a)cora.nwra.com
Boulder, CO 80301 http://www.cora.nwra.com
14 years, 2 months
aot-compile-rpm and bouncycastle
by Jerry James
When I build an RPM for a Java application on F-11, the
aot-compile-rpm step is issuing some warnings I don't understand.
They look like this:
WARNING: Error loading security provider
org.bouncycastle.jce.provider.BouncyCastleProvider:
java.lang.ClassNotFoundException:
org.bouncycastle.jce.provider.BouncyCastleProvider not found in
gnu.gcj.runtime.SystemClassLoader{urls=[file:./],
parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
The application in question does not use bouncycastle, directly or
indirectly. On the other hand, I do have bouncycastle installed. Is
something misconfigured? Should bouncycastle be a BuildRequires for
gcj-using RPMs?
--
Jerry James
http://www.jamezone.org/
14 years, 2 months
Project Needed
by Prashant Prakash
hey i am student level java programmer and i need to do some major project
for my 4th year in computer science and engineering.
Can any one please suggest me and guide me whole through the project ??
PRASHANT PRAKASH
(coding for freedom)
14 years, 2 months