pafra88 / rowboat

Automatically exported from code.google.com/p/rowboat
0 stars 0 forks source link

Java 1.5 and Java 1.6 #16

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
i am running ubuntu 9.10, it comes with default java 1.6. 

how do i switch to java 1.5, i tried sudo apt-get install java-sun** stuff, 
it did not work, please help 

sg

Original issue reported on code.google.com by sandeshg...@gmail.com on 3 Dec 2009 at 5:14

GoogleCodeExporter commented 9 years ago
just add these two line on your sources.list under /etc/apt 

deb http://us.archive.ubuntu.com/ubuntu/ karmic-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ karmic-updates multiverse

and do the thing ( sudo apt-get install  sun-java5-jdk ) 

enjoy

Original comment by sandeshg...@gmail.com on 3 Dec 2009 at 6:25

GoogleCodeExporter commented 9 years ago
I just tried this and still no luck.
1st - added the two lines, then 'source sources.list' and i get error msgs 
about the 'deb' commands.
* root@marc-desktop:/etc/apt# source sources.list
No command 'deb' found, did you mean:
 Command 'debc' from package 'devscripts' (main)
 Command 'derb' from package 'libicu-dev' (main)
 Command 'dab' from package 'bsdgames' (universe)
 Command 'debi' from package 'devscripts' (main)
deb: command not found
deb-src: command not found
No command 'deb' found, did you mean:
 Command 'debc' from package 'devscripts' (main)
 Command 'derb' from package 'libicu-dev' (main)
 Command 'dab' from package 'bsdgames' (universe)
 Command 'debi' from package 'devscripts' (main)
deb: command not found

2nd - still get 'Couldn't find pacakge sun-java5-jdk'
root@marc-desktop:/etc/apt# apt-get install sun-java5-jdk
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Couldn't find package sun-java5-jdk
root@marc-desktop:/etc/apt# 

Thanks for any help.

Original comment by damat...@gmail.com on 17 Aug 2010 at 2:00

GoogleCodeExporter commented 9 years ago
You can still build everything using Java 1.6. I won't say it won't crash, but 
I have compiled it with Java 1.6 and it works for me.

Just hardcode the java_version and javac_version in build/core/main.mk and it 
will work.

e.g. change "javac_version := $(shell javac -version 2>&1 | head -n 1 | grep '[ 
"]1\.5[\. "$$]')" to 'javac_version := "1.5"'

This is not recommended though.

Cheers,
  Raphael.

Original comment by rfonte...@gmail.com on 17 Aug 2010 at 3:13

GoogleCodeExporter commented 9 years ago
Same here. I was able to change the required Java version to 1.6 which is the 
default on Fedora 13+ and there were no issues with the build & install process.

Original comment by kowalews...@gmail.com on 21 Mar 2011 at 6:05