SweetHome3d

General talk about packaging procedures and packages.
JoPalMo
Posts: 9
Joined: 8. Apr 2014, 11:37

Re: SweetHome3d

Post by JoPalMo »

Doing in this way the installation finishes apparently without errors but SH3D doesn't runs...

administrador[~]$ SweetHome3D
Exception in thread "main" java.lang.NoClassDefFoundError: javax/jnlp/UnavailableServiceException
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2531)
at java.lang.Class.getMethod0(Class.java:2774)
at java.lang.Class.getMethod(Class.java:1663)
at sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:494)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:486)
Caused by: java.lang.ClassNotFoundException: javax.jnlp.UnavailableServiceException
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
... 6 more
User avatar
gapan
Salix Wizard
Posts: 6241
Joined: 6. Jun 2009, 17:40

Re: SweetHome3d

Post by gapan »

So, try installing the oracle jdk. Follow marcxjo's instructions for that. Remove any openjre/openjdk packages you have installed first.
Image
Image
JoPalMo
Posts: 9
Joined: 8. Apr 2014, 11:37

Re: SweetHome3d

Post by JoPalMo »

I'll try it. Thank you all.
marcxjo
Posts: 27
Joined: 1. Apr 2014, 18:56

Re: SweetHome3d

Post by marcxjo »

JoPalMo wrote:Well, I've downloaded jdk-7u51-linux-i586.tar.gz from Oracle but now I don't know exactly what to do with it...
I'm sorry, I didn't even think about giving instructions for the installation stage!

Assuming you've used my suggestion to mirror the SlackBuild directory with lftp, and you've grabbed up the jdk tarball, go ahead and move that tarball to that mirrored directory.

At this point, you should be just about ready to build the jdk. Let's make sure the file is at least user-executable, though.

Code: Select all

chmod u+x
jdk.SlackBuild
If your user has sudo privileges:

Code: Select all

sudo su
(your password upon being prompted)
If you aren't sure whether you have sudo privileges, then with 99% probability you do not. In that case, instead of the previous, enter:

Code: Select all

su
(root password upon being prompted)
Aaaalmost there!

Code: Select all

./jdk.SlackBuild
... let the install run...

Code: Select all

cd /tmp
ls *.txz
You should find a tarball that is very obviously the jdk. For our purposes I'm just calling it jdk-x.txz further below, but it will NOT have a name that simple. If for any reason you find no such file, look in the .SlackBuild script itself (right-click on its icon, and choose to open it with Leafpad or Geany) and search for this line near the top of the file:

Code: Select all

OUTPUT=${OUTPUT:-/tmp}
where /tmp might be replaced with another output directory. In any case, that directory will be where you want to find your .txz.

cd into the proper directory, find the jdk package with ls, and just install like so:

Code: Select all

installpkg jdk-x.txz
And now you have the Oracle JDK! SweetHome3D should be ready to run!
gapan wrote:
laprjns wrote:
knome wrote:As far as I remember SweetHome3d requires officiath :D l Java. Open jdk doesn't work.
That may be true but I believe that slapt-src is failing here because it is looking for a package called jdk, not openjdk. Salix dependency files allow for jdk or openjdk. So before going through the trouble of installing jdk, install openjdk and the try installing weathome3d using slapt-src "no dependency" option. Check slapt-src --help for the correct syntax.
This.

If you have done a full salix installation, you should have openjre installed anyway. I haven't tried sweethome3d, but I kind of doubt it needs jdk instead of jre. So you probably don't need anything other than what you have installed. If it indeed fails to run (after you have installed it with "slapt-src --no-dep"), then try installing openjdk with slapt-get. If it still doesn't run, then create and install the oracle jdk package.
I wondered about this! I fiddled with installing ejabberd about five months ago on a box running 14.0; if I had known this and a little more about SlackBuilds at the time, I'd have likely had a much easier time. I'd be very surprised if ejabberd couldn't run on openjdk.
gapan wrote:So, try installing the oracle jdk. Follow marcxjo's instructions for that. Remove any openjre/openjdk packages you have installed first.
Happy to help. ;)
User avatar
laprjns
Salix Warrior
Posts: 1105
Joined: 28. Aug 2009, 01:30
Location: Connecticut USA

Re: SweetHome3d

Post by laprjns »

These packages work with either openjre or openjdk
'''Package:'''
http://people.salixos.org/laprjns/sweet ... 86-1rl.md5
http://people.salixos.org/laprjns/sweet ... 86-1rl.txz
http://people.salixos.org/laprjns/sweet ... 86-1rl.dep
http://people.salixos.org/laprjns/sweet ... 86-1rl.src

'''Package:'''
http://people.salixos.org/laprjns/sweet ... 64-1rl.md5
http://people.salixos.org/laprjns/sweet ... 64-1rl.txz
http://people.salixos.org/laprjns/sweet ... 64-1rl.dep
http://people.salixos.org/laprjns/sweet ... 64-1rl.src

Make sure that openjre or openjdk is installed, download the txz file for your architecture and install it using spkg -i.
The problem was not with the java packages but rather with the SweetHome3D start up file not having the correct path to the java binary.
“Don’t you see that the whole aim of Newspeak is to narrow the range of thought?"
JoPalMo
Posts: 9
Joined: 8. Apr 2014, 11:37

Re: SweetHome3d

Post by JoPalMo »

Good news: finally it has been possible to install SH3D following the last indications.
Bad ones: it doesn't run properly. Strange lines occupy the 3d view...
User avatar
laprjns
Salix Warrior
Posts: 1105
Joined: 28. Aug 2009, 01:30
Location: Connecticut USA

Re: SweetHome3d

Post by laprjns »

I don't really use SweetHome3d, so i can't say for sure but it looks like it working here.
Image
“Don’t you see that the whole aim of Newspeak is to narrow the range of thought?"
JoPalMo
Posts: 9
Joined: 8. Apr 2014, 11:37

Re: SweetHome3d

Post by JoPalMo »

Thanks, I'll ask in SH3D forum
Post Reply