Is it possible to build Java 1.5.0 from source?
I have posted a similar question on the "New To Java" list, but have not received an answer. I think that what I am trying to do is far too advanced for the Newbie forum.
I am attempting to build Java 1.5.0 from the source tarball I downloaded from java.sun.com - jdk-1_5_0-src.scsl.zip.
Sun's own build instructions at http://java.sun.com/j2se/1.5.0/scsl/build-linux.html state: "A GNU gcc compiler version 3.2.2 is required or gcc 3.2.1-7 built with the latest binutils package, version 2.13."
Since I have been completely unable to find gcc 3.2.1-7 anywhere on the internet, including at gnu.org, I used gcc 3.2.2.
Unfortunately, when I run the make scsl comman, I receive an error saying that gcc 3.2.2 is not supported and that I have to use gcc 3.2.1-7. I don't have the exact error message in front of me but can get it if it matters.
So it appears that Java 1.5.0 will not build with gcc 3.2.2. And I am not able to find gcc 3.2.1-7.
Has anyone out there tried to build Java 1.5.0 from source? Does anyone know why gcc 3.2.2 does not work?
And most importantly, does anyone know where I can find gcc 3.2.1-7?
Thanks.
Sun's own build instructions at
http://java.sun.com/j2se/1.5.0/scsl/build-linux.html
state: "A GNU gcc compiler version 3.2.2 isrequired
or gcc 3.2.1-7 built with the latest binutils
package, version 2.13."
Since I have been completely unable to find gcc
3.2.1-7 anywhere on the internet, including at
gnu.org, Did you try extracting it from the online source
control systems?No. I assumed that java.sun.com would be the definitive source for Java.
>
I used gcc 3.2.2.
Unfortunately, when I run the make scsl comman, I
receive an error saying that gcc 3.2.2 is not
supported and that I have to use gcc 3.2.1-7. I
don't have the exact error message in front of mebut
can get it if it matters.
So it appears that Java 1.5.0 will not build withgcc
3.2.2. And I am not able to find gcc 3.2.1-7.
I would suspect that 3.2.2 will work if you dig into
the build tools.
Similar Messages
-
Hi,
Is it possible to build Java DC without having NW Infrastructure installed? Is yes, how to do it?
Any help would be appreciated. Thanks.Hi,
This is back to my unanswer question inRe: Java DC Build Failed which lead me to build failed problem. Anyone hv any more idea to solve that kinda build issue?
Any help would be appreciated. Thanks.
p/s:I'm using NWDS v2.018. -
Building java executable for windows
Well, actually I have two qestions:
1) how it is possible to build executable running under windows using usual Java tools, e. g. ant or something like this?
2) if I'm using VS.NET I can't compile files wich import javax. ... etc. classes, what I should to in order to import them?
Any suggestions welcome.Well, actually I have two qestions:
1) how it is possible to build executable running
You want a .exe at a guess, search the forums.
All the regs. have answed this many many many times, and some very good answers exist on the forums.
Normally, when people ask this, they really need to read:
http://java.sun.com/docs/books/tutorial/jar/
http://java.sun.com/products/javawebstart/
But sometime (not very ofton) a ".exe" is needed:
http://gcc.gnu.org/java/
http://www.excelsior-usa.com/jet.html
under windows using usual Java tools, e. g. ant or
something like this?Sure, make a new task. For GCJ this would be very easy.
2) if I'm using VS.NET I can't compile files wich
import javax. ... etc. classes, what I should to in
order to import them?Are you compiling to .NET or to Java Byte Code.
If its Java Byte Code, I have no idea, if its .NET the below might work
http://classpath.org
http://www.ikvm.net/ -
Failed to build Java Mail API 1.4.5 with maven-3.0.4
Hi,
I am trying to build Java Mail 1.4.5 with Maven-3.0.4 using default settings of maven.
It is getting failed to build due to following errors -
[ERROR] COMPILATION ERROR :
[INFO] -----------------------------------------------------------
[ERROR] \Workarea\mySourceData\src\Mail\mail\src\main\java\javax\mail\Session.java:[210,37] cannot find symbol
symbol : variable Version
location: class javax.mail.Session
[ERROR] \Workarea\mySourceData\src\Mail\mail\src\main\java\javax\mail\Session.java:[369,47] cannot find symbol
symbol : variable Version
location: class javax.mail.Session
[ERROR] \Workarea\mySourceData\src\Mail\mail\src\main\java\javax\mail\Session.java:[913,29] cannot find symbol
symbol : variable Version
location: class javax.mail.Session
[ERROR] \Workarea\mySourceData\src\Mail\mail\src\main\java\javax\mail\Session.java:[916,29] cannot find symbol
symbol : variable Version
location: class javax.mail.Session
[ERROR] \Workarea\mySourceData\src\Mail\mail\src\main\java\javax\mail\Session.java:[919,29] cannot find symbol
symbol : variable Version
location: class javax.mail.Session
[ERROR] \Workarea\mySourceData\src\Mail\mail\src\main\java\javax\mail\Session.java:[922,29] cannot find symbol
symbol : variable Version
location: class javax.mail.Session
[ERROR] \Workarea\mySourceData\src\Mail\mail\src\main\java\javax\mail\Session.java:[925,29] cannot find symbol
symbol : variable Version
location: class javax.mail.Session
[ERROR] \Workarea\mySourceData\src\Mail\mail\src\main\java\javax\mail\Session.java:[928,29] cannot find symbol
symbol : variable Version
location: class javax.mail.Session
[INFO] 8 errors
[INFO] -----------------------------------------------------------
[INFO] ----------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ----------------------------------------------------------------------
[INFO] Total time: 1:51.197s
[INFO] Finished at: Tue Jan 08 13:06:01 IST 2013
[INFO] Final Memory: 12M/67M
[INFO] ----------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.
3.2:compile (default-compile) on project javax.mail: Compilation failure: Compil
ation failure:
[ERROR] \Workarea\mySourceData\src\Mail\mail\src\main\java\javax\mail\Session.java:[210,37] cannot find symbol
[ERROR] symbol : variable Version
[ERROR] location: class javax.mail.Session
[ERROR]\Workarea\mySourceData\src\Mail\mail\src\main\java\javax\mail\Session.java:[369,47] cannot find symbol
[ERROR] symbol : variable Version
[ERROR] location: class javax.mail.Session
[ERROR] \Workarea\mySourceData\src\Mail\mail\src\main\java\javax\mail\Session.java:[913,29] cannot find symbol
[ERROR] symbol : variable Version
[ERROR] location: class javax.mail.Session
[ERROR] \Workarea\mySourceData\src\Mail\mail\src\main\java\javax\mail\Session.java:[916,29] cannot find symbol
[ERROR] symbol : variable Version
[ERROR] location: class javax.mail.Session
[ERROR] \Workarea\mySourceData\src\Mail\mail\src\main\java\javax\mail\Session.java:[919,29] cannot find symbol
[ERROR] symbol : variable Version
[ERROR] location: class javax.mail.Session
[ERROR] \Workarea\mySourceData\src\Mail\mail\src\main\java\javax\mail\Session.java:[922,29] cannot find symbol
[ERROR] symbol : variable Version
[ERROR] location: class javax.mail.Session
[ERROR]\Workarea\mySourceData\src\Mail\mail\src\main\java\javax\mail\Session.java:[925,29] cannot find symbol
[ERROR] symbol : variable Version
[ERROR] location: class javax.mail.Session
[ERROR] \Workarea\mySourceData\src\Mail\mail\src\main\java\javax\mail\Session.java:[928,29] cannot find symbol
[ERROR] symbol : variable Version
[ERROR] location: class javax.mail.Session
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal o
rg.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on
project javax.mail: Compilation failure
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:213)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(LifecycleModuleBuilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBu
ild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecycl
eStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun
cher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav
a:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La
uncher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
352)
Caused by: org.apache.maven.plugin.CompilationFailureException: Compilation fail
ure
at org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompiler
Mojo.java:656)
at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:128)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Default
BuildPluginManager.java:101)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:209)
... 19 more
[ERROR]
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExceptionSame issue I am facing when I am trying to build Java Mail with netbeans - 7.2.1, it getting failed with same version issue in Session.java class.
How can I set this Version in Session.java class to get rid of this error?
If we can use nexus repository then please let me know how to set this.
Thanks,
Neelam SharmaI answered this question here:
http://stackoverflow.com/questions/14217596/failed-to-build-java-mail-api-1-4-5-with-maven-3-0-4/14288418#14288418 -
Hi there,
I am planning to use Labview 2010 in a short time.
But before I'm going to use it I have some questions.
I know it is possible to run Labview 2010 in an XP environment. But is it also possible to, when running Labview 2010 on a XP system, to build a project to a version that is useful in a Windows 7 environment?
Or do I have to run Labview 2010, when I want to build a project that is useful on a Windows 7 system, on a system with Windows 7?
Please give me some information.
I hope to hear from one of you soon.
Regards,
Kenny
Solved!
Go to Solution.Is it possible to build a project with Labview 2009 on a Windows XP system, that is useful for a system with windows 7 on it?
Thanks.
Philippe B.
Certified Associate Developer / Dépt Moyens d'essais
www.ingenia-system.com -
How to build JAVA script in CMD
How to build JAVA script in CMD command prompt?
I think it's build.all but it's not working plz helpTo build a Java class file (ie compile it) you need to call the Java compiler javac. There is software around to make this easier:
- ANT a make like tool but with XML files usually called build.xml
- Maven a more convention driven approach for much complexer systems
- IDEs like JDeveloper, Netbeans, Eclipse, you name it.
--olaf -
A possible *bug* in java jcombobox
Hi all,
I think i found a possible bug in java jcombobox .. i am sure some of you must have already experienced it..
supposedly you put a jcombobox in a jpanel
returned the panel from a method to a calling method..
and that method adds it to another panel that it had created to a frame..
and if this happens dynamicaly at runtime, as only after u click a button..
meaning : without adding the combobox or the immediate parent panelto the contentpane .. directly..
Then,
your combox's keylistener may not catch events fired.
.. this has happened to me many times.. and always i could only find a way out
.. by adding the combobox to panel that is loaded during startup itself and is
.. not returned through a method call.
Your opinions please ?
'Harish.All components in a UI are created at run-time.
When you create your JFrame you call pack() to align and resize the UI. This validates all the components, and sets the default focus on what ever component should have the focus at start up.
When you create components and add them as children of another component you have to validate the child and parent. This can be done by calling JComponent.validate()
As for keylisteners not getting called, this might be fixed if you call grabFocus on the new combobox. I can't see a reason why any listener would stop working.
For me to really understand what your talking about. I'd need to see source code reproducing this problem. -
Is it possible to build a binary working on solaris 8 from solaris 10
Hi
I understand that my requirement is kinda weird. However, I really wonder whether it is possible sometimes.
I have built ssh successfully both on solaris 8 and solaris 10. Now the problem is the binary built on solaris 8 can work on solaris 10, but the binary built on solaris 10 can not work on solaris 8.
The problem is SUNW_1.2.2 can not be found on solaris 8.
$ldd sshd
libresolv.so.2 => /usr/lib/libresolv.so.2
librt.so.1 => /usr/lib/librt.so.1
libsocket.so.1 => /usr/lib/libsocket.so.1
libnsl.so.1 => /usr/lib/libnsl.so.1
libc.so.1 => /usr/lib/libc.so.1
libc.so.1 (SUNW_1.22) => (version not found)
libdl.so.1 => /usr/lib/libdl.so.1
libaio.so.1 => /usr/lib/libaio.so.1
libmp.so.2 => /usr/lib/libmp.so.2
/usr/platform/SUNW,Sun-Fire-V210/lib/libc_psr.so.1After more detailed investigation, I found the system-call dlopen and so on are linked to SUNW_1.2.2
objdump -T sshd|grep SUNW_1.22
00251240 DF *UND* 00000000 SUNW_1.22 dlerror
00251510 DF *UND* 00000000 SUNW_1.22 dlclose
00251738 DF *UND* 00000000 SUNW_1.22 dlopen
0025181c DF *UND* 00000000 SUNW_1.22 dlsym
00251a98 DF *UND* 00000100 SUNW_1.22 unsetenvBut for the binary built on solaris 8, system-call dlopen is provided by SISCD_2.3.
objdump -T sshd|grep dl
0023f160 DF *UND* 00000008 SISCD_2.3 dlopen
0023f16c DF *UND* 00000008 SISCD_2.3 dlclose
0023f274 DF *UND* 00000008 SISCD_2.3 dlerror
0023f8d4 DF *UND* 00000008 SISCD_2.3 dlsymAs sshd from solaris 8 is working on solaris 10, I think SISCD2.3 is also available on Solaris10. So is it possible to build ssh (any special link option?) with SISCD_2.3 rather than SUNW_1.2.2?Yuechen wrote:
Hi
I understand that my requirement is kinda weird. However, I really wonder whether it is possible sometimes.
I have built ssh successfully both on solaris 8 and solaris 10. Now the problem is the binary built on solaris 8 can work on solaris 10, but the binary built on solaris 10 can not work on solaris 8.That is expected. Binaries should have forward compatibility and run on later versions of the OS.
Build on 8, run on 8 through 10.
Darren -
XJC Tool - For building Java classes from Schema
Hi all,
I am using XJC tool for Building java classes from Schema.
Can we have any other tool for generating java classes from Schema?
Thanks in advance,
typurohitSolved my own problem and forgot to post the answer: the "xsd:import" is also considered as a targetNamespace, so each xsd:import needs a package specified as well when using oracg. It would be helpful if the Oracle documentation had stated that, but it does not point this out.
-
Command Line Build - Java heap space error
I'm attempting to build a Flex app via the command line. Even though the build works fine from within the Flash Builder IDE, I get the following error when I attempt to build via the command line
C:\code\software\web_stuff>"C:\Program Files\Adobe\Adobe Flash Builder Beta 2\FlashBuilderC.exe" --launcher.suppressErrors -noSplash -application org.eclipse.ant.core.antRunner -data "C:\code\software\web_stuff" -file C:\code\software\web_stuff\build.xml WebControlBrowser
Buildfile: C:\code\software\web_stuff\build.xml
WebControlBrowser:
[fb.exportReleaseBuild] Compiling 1 application to C:\code\software\web_stuff\WebControlBrowser\bin-release...
[fb.exportReleaseBuild] Exception in thread "Code Model Worker" java.lang.OutOfMemoryError: Java heap space
[fb.exportReleaseBuild] at org.eclipse.core.internal.runtime.InternalPlatform.getLog(InternalPlatform.java:404)
[fb.exportReleaseBuild] at org.eclipse.core.runtime.Plugin.getLog(Plugin.java:282)
[fb.exportReleaseBuild] at com.adobe.flexbuilder.codemodel.internal.bridge.WorkspaceSpecification.log(WorkspaceS
pecification.java:136)
[fb.exportReleaseBuild] at com.adobe.flexbuilder.codemodel.internal.parsing.ASTokenizer.parseTokens(ASTokenizer.
java:386)
[fb.exportReleaseBuild] at com.adobe.flexbuilder.codemodel.internal.search.SWCSearchDataProvider.indexFiles(SWCS
earchDataProvider.java:440)
[fb.exportReleaseBuild] at com.adobe.flexbuilder.codemodel.internal.search.SWCSearchDataProvider$2.run(SWCSearch
DataProvider.java:364)
[fb.exportReleaseBuild] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
[fb.exportReleaseBuild] at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
[fb.exportReleaseBuild] at java.lang.Thread.run(Unknown Source)
BUILD FAILED
C:\code\software\web_stuff\build.xml:4: java.lang.OutOfMemoryError: Java heap space
Total time: 1 minute 0 seconds
FlashBuilderC:
An error has occurred. See the log file
C:\code\software\web_stuff\.metadata\.log.
I've attached the .log file that is referenced.Why isn't this documented somewhere? or if it is why isn't it easy to find?
This link ought to have a link to common issues people run into.
I just spent an hour trying to solve this same problem. FlashbuilderC.exe wouldn't even work on very small projects until I found this post, so thanks. -
Is it possible to call Java routines from FMS?
Say I have a game package, most of which
are written in Java. I am thinking
to leave the core logics in Java, but
change the user interface into Flash,
and serve it over FMS. Now is it
possible to call Java routines from
FMS?
I'd appreciate any suggestions.Yes! You can use SOAP(or XML-RPC) to call Java routines.
Relevant link:
http://www.adobe.com/devnet/flashmediaserver/articles/fms_web_services_05.html
Btw, does anyone know if there is XML-RPC package for
FMS? -
Is it possible to build a firewall using labview??
Is it possible to build a firewall using labview??
RAJESHThere are several kinds of firewalls, for example:
(1) so called "personal firewall software" which applies some policies to incoming and outgoing ethernet traffic on the computer it is running.
(2) Dedicated hardware firewalls (having at least two ethernet interfaces) that enforce policies of traffic flowing across. These can be bridging, routing, or even be proxying.
LabVIEW does NOT have access to the low level packet structure (ethernet header, ip header, tcp header, etc.) and relies on the OS for routing decisions. LabVIEW only deals with TCP and UDP and only at a very high level. A firewall must also make decisions for e.g. ICMP, GRE, or other IP packets, must know the status of all TCP flags (SYN, ACK, URG, PSH, FIN, RST), must check for valid fragmentations, et., etc.. LabVIEW cannot do any typical firewall tasks unless you do most of your work with external routines. In this case, LabVIEW just provides the UI.
(Even simple ftp traffic would be quite complicated. For example the ports for the secondary data connections must be dynamically allowed based on information gleaned from the control connection, in this particular case the PORT command and the reply to the PASV command).
I would say the answer is NO! Not with the networking tools provided with LabVIEW alone.
With lots of work, you might be able to built a simple proxy server using LabVIEW, but this would seem quite useless...
LabVIEW Champion . Do more with less code and in less time . -
HT5648 Is it possible to use Java 1.6.0_39 on OS X 10.8.2
Is it possible to use Java 1.6.0_39 on OS X 10.8.2
Apple has posted (10/22/12) the approved solution for restoring the Java 6 plug-in:
Java for OS X 2012-006: How to re-enable the Apple-provided Java SE 6 applet plug-in and Web Start functionality. -
Is that possible to build cube using STAGING FACT TABLE on Essbase ?????
If yes, kindly guide me to do ....
Thanks in advance,
MeharI'm not sure what you are asking. IF you are asking if you can use a fact table as the source for buildnig an Essbase database, the answer is yes, from either SQL interface or Essbase Studio (or ODI or EIS). IF you are asking if you can use as relational staging table as an Essbase cube then no. If you can phrase the question differently or give an example of that you are trying to do, it might clarify what you are trying to do
-
Is there any possibility to develope java application for IPhones
Is there any possibility to develope java application for IPhones
921326 wrote:
Just look to the next thread!I did that after I replied to the last person to ask this question. I spotted this thread:
Developing iPhone apps with JavaFX 2 (Demo)
Not much there, but apparently people are trying to hack it together using JavaFX 2 already. I believe I read an article where Oracle itself had given a presentation about a JavaFX2 app on an iPhone; I believe the gist of it is that they want to make it so you can bundle the Java runtime with your application, which makes it legal to sell a Java application through the appstore.
Maybe you are looking for
-
PL/SQL: Executing a procedure from within another procedure
Hello, I'm a newbie and I need help on how to execute procedures from within another procedure. The procedure that I call from within the procedure have return values that I want to check. I tried: EXECUTE(user_get_forum_info(p_forumid, var_forum_exi
-
Using remote enabled rfcs can we send data from one system to other..
or do can we do this only b/w twp sap systems. why do we use bapis then. wat is its difference b/w rfc and bapi.
-
ever since I updated to Firefox 3.6.8 I can no longer open/delete/etc e-mail on MS Hotmail's revamped version which I could with Firefox's older version. I cannot even highlite messages, no nothing I use Windows Vista == This happened == Every time F
-
Quick Poll Greyed Out - unable to edit
Hello, We have a series of quick polls assigned to individual campaigns and all are 'ongoing'. These are then assigned to KM IViews and assigned to users via roles etc. Last week we were able to edit the quick poll, editing the text, participants et
-
Yesterday I purchased what I thought was a download so that I could convert PDF files to be able to edit them, but I cannot find how to download this, my order number is AD001393058UK it would appear that all I have bought is a license to enable me