Solved

how to build GNU Classpath and JamVM

Posted on 2009-04-15
8
1,240 Views
Last Modified: 2013-12-05

I'm trying to build GNU Classpath 0.98 and JamVM 1.5.2. Following the JamVM readme, I did 'configure; make; make install' on the jamVM, and it worked.

However, I need a java compiler (ecj) which is in .jar format itself. I can't run it without a working JVM (which I'm currently building).

I use slax and it doesn't provide a binary package for ecj. What should I do?
0
Comment
Question by:MicheleMarcon
  • 4
  • 4
8 Comments
 
LVL 86

Expert Comment

by:CEHJ
ID: 24148302
>>I use slax and it doesn't provide a binary package for ecj. What should I do?

I didn't know slax used packages - thought it was tarballs. You could get a deb or rpm and unpack it maybe?
0
 
LVL 13

Author Comment

by:MicheleMarcon
ID: 24148430
Unfortunately, it's not so easy. ecj depends on, basically, a JRE, GTK, Cairo and a lot of stuff. Downloading and unpacking everything will most probably lead to system corruption.
0
 
LVL 86

Accepted Solution

by:
CEHJ earned 500 total points
ID: 24148516
No, i realise you could get dependency problems, but i don't think it should depend on any windowing environment. These are the deps on my system:
goose@hpbrio:/tmp$ debfoster -d ecj-bootstrap
Package ecj-bootstrap depends on:
  ecj-bootstrap-gcj fastjar gcc-4.1-base gcj-4.1-base gij-4.1 java-common
  java-gcj-compat libasound2 libc6 libgcc1 libgcj-bc libgcj-common libgcj7-0
  libgcj7-jar tzdata zlib1g

Open in new window

0
Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

 
LVL 13

Author Comment

by:MicheleMarcon
ID: 24157394
I've tryed unpacking rpm and deb for a lot of distribution. I managed to run gij but gij didn't run ecj.

So no luck with deb and rpm.

I even found the .tgz files for jamvm and gnu classpath. But even then, they don't work! There was a symlink wrong, I adjusted it but still don't work...

0
 
LVL 86

Expert Comment

by:CEHJ
ID: 24157623
What is the script meant to do that you got? What *did* it do?
0
 
LVL 13

Author Comment

by:MicheleMarcon
ID: 24165175
Sorry, I don't understand. Which "script" are you talking about? I've taken a few routes for my solution:

a) I used JDK for building classpath. JDK can't find VMStackTrace classes (classpath classes)
b) I run ecj.jar with script ecj-bootstrap and other, still using JDK. Didn't work.
c) I downloaded the source of gcj, only to find that I need to rebuild gcc (can't do that, too long to explain)
d) I downloaded and installed debs and rpms of gcj, ecj. I managed to run gij which in turn should run ecj-bootstrap. I only get "Aborted" as output.
e) I downloaded binaries classpath-0.98-1.pkg.tar.gz and jamvm-1.5.1.tgz. Guess what? They still didn't work. I tryed to link this classpath with my own built jamvm but still didn't work.

Switching to other JVM won't help, as the problem is building classpath. I think I'll try to download the oldest classpath available, and hope that it builds with JDK. If it works, I'll use it to build newer classpaths...

Other suggestion?
0
 
LVL 13

Author Comment

by:MicheleMarcon
ID: 24165434
Found it! Look at this forum thread:

http://sourceforge.net/forum/message.php?msg_id=7193290
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 24166139
>>Which "script" are you talking about?

I meant 'script ecj-bootstrap' actually. Glad you got it fixed ;-)

0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Zimbra on Amazon Linux help 7 115
collection output issue 9 65
java mysql insert application 14 46
Where to place postgres JDBC driver jar on tomcat 8 31
The purpose of this article is to demonstrate how we can use conditional statements using Python.
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question