JRE1.7 on FreeNAS 8

Status
Not open for further replies.

allegiance

Explorer
Joined
Jan 4, 2013
Messages
53
We have a Java application that keeps crashing and the developer says it is due to the fact that we are running JRE1.6 and need to upgrade to JRE1.7. Can someone help point me in the direction to find Java 7 / JRE1.7? I can only find 1.6 via FreeBSD. Thanks!
 

allegiance

Explorer
Joined
Jan 4, 2013
Messages
53
Cannot seem to be able to get any of the dependancies:

[root@freenas] /usr# pkg_add -rn openjdk7
Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8.2-release/Latest/openjdk7.tbz... Done.
Package dependency xextproto-7.1.1 for ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8.2-release/Latest/openjdk7.tbz not found!
Package dependency renderproto-0.11 for ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8.2-release/Latest/openjdk7.tbz not found!
Package dependency recordproto-1.14 for ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8.2-release/Latest/openjdk7.tbz not found!
Package dependency kbproto-1.0.4 for ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8.2-release/Latest/openjdk7.tbz not found!
Package dependency inputproto-2.0 for ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8.2-release/Latest/openjdk7.tbz not found!
Package dependency javavmwrapper-2.3.5 for ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8.2-release/Latest/openjdk7.tbz not found!
Package dependency pkg-config-0.25_1 for ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8.2-release/Latest/openjdk7.tbz not found!
Package dependency freetype2-2.4.4 for ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8.2-release/Latest/openjdk7.tbz not found!
Package dependency xproto-7.0.16 for ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8.2-release/Latest/openjdk7.tbz not found!
Package dependency libXau-1.0.5 for ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8.2-release/Latest/openjdk7.tbz not found!
Package dependency libXdmcp-1.0.3 for ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8.2-release/Latest/openjdk7.tbz not found!
Package dependency libICE-1.0.6,1 for ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8.2-release/Latest/openjdk7.tbz not found!
Package dependency libSM-1.1.1_3,1 for ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8.2-release/Latest/openjdk7.tbz not found!
Package dependency libpthread-stubs-0.3_3 for ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8.2-release/Latest/openjdk7.tbz not found!
Package dependency libxcb-1.7 for ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8.2-release/Latest/openjdk7.tbz not found!
Package dependency libX11-1.3.3_1,1 for ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8.2-release/Latest/openjdk7.tbz not found!
Package dependency libXt-1.0.7 for ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8.2-release/Latest/openjdk7.tbz not found!
Package dependency libXrender-0.9.5 for ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8.2-release/Latest/openjdk7.tbz not found!
Package dependency libXext-1.1.1,1 for ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8.2-release/Latest/openjdk7.tbz not found!
Package dependency libXi-1.3,1 for ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8.2-release/Latest/openjdk7.tbz not found!
Package dependency libXtst-1.1.0 for ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8.2-release/Latest/openjdk7.tbz not found!
Package dependency libiconv-1.13.1_1 for ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8.2-release/Latest/openjdk7.tbz not found!



Do I need to load them manually first? Sorry for being a noob.
 

ProtoSD

MVP
Joined
Jul 1, 2011
Messages
3,348
allegiance

I'm sorry you have to discover this the difficult way. While I know Williams intentions are good, he hasn't suffered the problems with getting java to work with the jail as I have. Your luck may vary since you're not trying to build a plugin, but it's still troublesome.

OpenJDK7 has issues, fonts, and other stuff I don't remember because I got so fed up trying to get it to play nice. ALSO, if you are building from the ports tree, OpenJDK STILL requires JRE1.6 (Diablo) to compile OpenJDK. You'll need to download it manually and agree to the license, then copy it to /usr/ports/distfiles.

You'll keep going around in circles with various problems. Its why I wish we'd just get to FreeNAS 9.x with a newer FreeBSD base to work with. The current jail is based on 8.0 and there are issues with dependencies.

If you dig here in the forums, you might find some old tutorials on how to install stuff manually. I took my java tutorials down.
 

William Grzybowski

Wizard
iXsystems
Joined
May 27, 2011
Messages
1,754
I wont discuss about FreeBSD 8.x vs FreeBSD 9.x again, as I already told this is not an issue. Specially within a jail that uses an up-to-date ports.
 

allegiance

Explorer
Joined
Jan 4, 2013
Messages
53
OK, so I had already downloaded (and installed) JRE1.6(Diablo) - that is what I am currently running. I can try copying it to /usr/ports/distfiles, but the /usr/ports folder does not exist, so I tried downloading the portsnap collection using "portsnap fetch", but it tells me the portsnap command is not found. I assume I have to load that? I tried searching on how, but all I found on the forums was someone asking "how?" and many responses of "why would you want to?"
 

ProtoSD

MVP
Joined
Jul 1, 2011
Messages
3,348
I wont discuss about FreeBSD 8.x vs FreeBSD 9.x again, as I already told this is not an issue. Specially within a jail that uses an up-to-date ports.

We didn't really discuss it before. You made a statement, which in theory seems like a great idea, but in actuality it doesn't work. I know you're too busy to experiment, and I'm too busy to reproduce all the details of why there are problems. Sure, I'm not developer like you, but that doesn't mean I don't know what I'm talking about either.
 

ProtoSD

MVP
Joined
Jul 1, 2011
Messages
3,348
OK, so I had already downloaded (and installed) JRE1.6(Diablo) - that is what I am currently running. I can try copying it to /usr/ports/distfiles, but the /usr/ports folder does not exist, so I tried downloading the portsnap collection using "portsnap fetch", but it tells me the portsnap command is not found. I assume I have to load that? I tried searching on how, but all I found on the forums was someone asking "how?" and many responses of "why would you want to?"

It sounds like you are not running the commands from inside the jail.

You should do:

portsnap fetch
portsnap extract
 

William Grzybowski

Wizard
iXsystems
Joined
May 27, 2011
Messages
1,754
We didn't really discuss it before. You made a statement, which in theory seems like a great idea, but in actuality it doesn't work. I know you're too busy to experiment, and I'm too busy to reproduce all the details of why there are problems. Sure, I'm not developer like you, but that doesn't mean I don't know what I'm talking about either.

I'm not just a developer, I am also a user and I have compiled openjdk and I'm running java applications just fine within my jail.
 

allegiance

Explorer
Joined
Jan 4, 2013
Messages
53
Could be I'm not running from the jail since I didn't even know what that was. I looked up how to install one, but I have no "Plug-Ins" section under the "Services" section to even load one. Here is my current build level:
FreeNAS-8.0.4-RELEASE-p2-x64 (11367)

Again, I hate to ask dumb questions, but I seem to be missing something important.
 

paleoN

Wizard
Joined
Apr 22, 2012
Messages
1,402
Again, I hate to ask dumb questions, but I seem to be missing something important.
That would be the part where plugins weren't added until 8.2.
 

allegiance

Explorer
Joined
Jan 4, 2013
Messages
53
Ah. That would be it. Thanks.
 

allegiance

Explorer
Joined
Jan 4, 2013
Messages
53
Tried upgrading through the GUI, reboots back to 8.0.4 even though there was no error on loading the update.
 

allegiance

Explorer
Joined
Jan 4, 2013
Messages
53
Got it. Sorry for the unnecessary post
 

Forssux

Explorer
Joined
Mar 13, 2013
Messages
67
Hi There,


I'm also fairly new to the jail concept....I'm running Freenas 8.3.1 Release on a 8GB ram machine and we have 16*160 GB hard disk and 1 pool IN RAID-Z

Learned a lot yesterday...

the jail has it's own ipadress and therefore needs to be changed when changing the main adres

Is your adress in a different range then the main adapt it acordinally

my main was: the jail was
10.120.17.123 10.120.17.126


This is what happens when I did a:
jls

JID IP Address Hostname Path
1 - software /mnt/DGCOM-Music/jail/soft
ware
2 - software /mnt/DGCOM-Music/jail/soft
ware

jexec 1 /bin/tcsh
pkg_add -rn openjdk7

Unable to get ftp://ftp.freebsd.org/pub/FreeBSD/ports/am64/packages-8.3-release/Latest/openjdk7.tbz: No address record

So I disabled the plugin and the jail core and changed the ip adress to 192.168.1.4

I've read somthing about ifconfig which will show your ipadresses

echo nameserver 8.8.8.8 > /etc/resolv.conf puts a nameresolver in your config

and sure I could ping 8.8.8.8 and also google.com
Now helas I have the same dependencies errors as the OP


I also find http://www.openbsd.org/cgi-bin/man....manpath=OpenBSD+Current&arch=i386&format=html

the following -n Don't actually install a package, just report the steps that would be taken if it was.

so I did a
pkg_add -r ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-8.3-release/java/openjdk-7.2.13.tbz

and now I have some dependencies but..They all complain that version 1-2.3 is expected but 1-2.4 is installed I guess I can get away with that..


Already thanks for reading this
Guy Forssman
 
Status
Not open for further replies.
Top