I have some problems compiling Spring new version.
Scons configure says that no zip and no java was found. Crazy. Java is installed: java 1.5/6 + jdk 1.7 + source + devel package. Zip what zip library? zlib? Or the programm zip? Or maybe zziplib?
http://pastebin.com/m25c195ea
I make a folder link from /usr/include/java to my latest java version. Doesn´t work.
compiling problems with java/zip
Moderator: Moderators
Maybe http://spring.clan-sy.com/phpbb/viewtopic.php?t=11167 would help ? (from the third post ...)
So, I rewrite I wrote in the other thread:
The check for java is done in rts/build/scons/config.py after line 181.
There it searches for java in : "/usr/local/lib/jvm", "/usr/lib/jvm".
On a Fedora Core 5, /usr/lib/jvm contained the necessary stuff.
So, if you do not have java installed in at least one of the two above directories it will not work. Please check that.
The check for java is done in rts/build/scons/config.py after line 181.
There it searches for java in : "/usr/local/lib/jvm", "/usr/lib/jvm".
On a Fedora Core 5, /usr/lib/jvm contained the necessary stuff.
So, if you do not have java installed in at least one of the two above directories it will not work. Please check that.
My java is installed in: /usr/java
"/usr/local/lib/jvm", does not exist.
"/usr/lib/jvm". does exist but where are only two files: liquidlnf.jar ; swing.properties
config.py from line 171 to 184
Check for java is done at line 196.
I edited the line 206:
From to:
Maybe someone with svn access should edit this line.
After edit it works.
Edit:
I found out that I installed two versions of jre and jdk.
java-1.6.0-sun and java-1.6.0-sun-devel from opensuse requires:
"/usr/lib64/jvm", "/usr/lib/jvm"
and the rpms from sun requires:
"/usr/java/"
Means the line 206 in config.py should be the following:
"/usr/local/lib/jvm", does not exist.
"/usr/lib/jvm". does exist but where are only two files: liquidlnf.jar ; swing.properties
config.py from line 171 to 184
Code: Select all
def check_openal(env, conf):
print "Checking for OpenAL..."
# put this here for crosscompiling
if env['platform'] == 'windows':
guess_include_path(env, conf, 'OpenAL', 'AL')
return
print " Checking for openal-config...",
openalcfg = env.WhereIs("openal-config")
if openalcfg:
print openalcfg
env.ParseConfig(openalcfg+" --cflags --libs")
else:
print "not found"
guess_include_path(env, conf, 'OpenAL', 'AL')
I edited the line 206:
Code: Select all
for root in ["/usr/local/lib/jvm", "/usr/lib/jvm"]:
Code: Select all
for root in ["/usr/local/lib/jvm", "/usr/java", "/usr/lib/jvm"]:
After edit it works.
Edit:
I found out that I installed two versions of jre and jdk.
java-1.6.0-sun and java-1.6.0-sun-devel from opensuse requires:
"/usr/lib64/jvm", "/usr/lib/jvm"
and the rpms from sun requires:
"/usr/java/"
Means the line 206 in config.py should be the following:
Code: Select all
for root in ["/usr/local/lib/jvm", "/usr/java", "/usr/lib64/jvm", "/usr/lib/jvm"]: