Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Sweethome3d (java overlay)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
pingufunkybeat
l33t
l33t


Joined: 01 Dec 2004
Posts: 610

PostPosted: Sat Mar 05, 2011 7:55 pm    Post subject: Sweethome3d (java overlay) Reply with quote

Has anyone got this to install?

I can install all the needed dependencies just fine, but when emerging sweethome3d, I get this:

Code:
>>> Compiling source in /var/tmp/portage/media-gfx/sweethome3d-3.0-r2/work/SweetHome3D-3.0-src ...                         
ejavac -d target/classes -encoding UTF-8 -classpath /usr/share/janino/lib/janino.jar @sources.lst                           
jar cf sweethome3d.jar -C target/classes .                                                                                 
 * Disabling all optional ANT_TASKS                                                                                         
Buildfile: /var/tmp/portage/media-gfx/sweethome3d-3.0-r2/work/SweetHome3D-3.0-src/build.xml                                 
                                                                                                                           
build:                                                                                                                     
    [mkdir] Created dir: /var/tmp/portage/media-gfx/sweethome3d-3.0-r2/work/SweetHome3D-3.0-src/build/classes               
    [javac] Compiling 2 source files to /var/tmp/portage/media-gfx/sweethome3d-3.0-r2/work/SweetHome3D-3.0-src/build/classes
    [javac] Note: Some input files use unchecked or unsafe operations.                                                     
    [javac] Note: Recompile with -Xlint:unchecked for details.                                                             
    [javac] Compiling 170 source files to /var/tmp/portage/media-gfx/sweethome3d-3.0-r2/work/SweetHome3D-3.0-src/build/classes                                                                                                                         
    [javac] /var/tmp/portage/media-gfx/sweethome3d-3.0-r2/work/SweetHome3D-3.0-src/src/com/eteks/sweethome3d/SweetHome3D.java:47: package javax.jnlp does not exist
    [javac] import javax.jnlp.BasicService;
    [javac]                  ^
    [javac] /var/tmp/portage/media-gfx/sweethome3d-3.0-r2/work/SweetHome3D-3.0-src/src/com/eteks/sweethome3d/SweetHome3D.java:48: package javax.jnlp does not exist

......

    [javac] /var/tmp/portage/media-gfx/sweethome3d-3.0-r2/work/SweetHome3D-3.0-src/src/com/eteks/sweethome3d/swing/ImportedFurnitureWizardStepsPanel.java:218: cannot find symbol
    [javac] symbol  : class UnavailableServiceException
    [javac] location: class com.eteks.sweethome3d.swing.ImportedFurnitureWizardStepsPanel
    [javac]     } catch (UnavailableServiceException ex) {
    [javac]              ^
    [javac] /var/tmp/portage/media-gfx/sweethome3d-3.0-r2/work/SweetHome3D-3.0-src/src/com/eteks/sweethome3d/swing/ImportedFurnitureWizardStepsPanel.java:221: cannot find symbol
    [javac] symbol  : class BasicService
    [javac] location: class com.eteks.sweethome3d.swing.ImportedFurnitureWizardStepsPanel
    [javac]     final BasicService service = basicService;
    [javac]           ^
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 78 errors

BUILD FAILED
/var/tmp/portage/media-gfx/sweethome3d-3.0-r2/work/SweetHome3D-3.0-src/build.xml:12: Compile failed; see the compiler error output for details.

Total time: 4 seconds
 * ERROR: media-gfx/sweethome3d-3.0-r2 failed (compile phase):
 *   eant failed
 *
 * Call stack:
 *     ebuild.sh, line   56:  Called src_compile
 *   environment, line 4552:  Called java-pkg-2_src_compile
 *   environment, line 2475:  Called eant 'build' 'furniture' 'textures' 'help' '-f' 'build.xml'
 *   environment, line 1003:  Called die
 * The specific snippet of code:
 *       ant ${antflags} "${@}" || die "eant failed"
 *
 * If you need support, post the output of 'emerge --info =media-gfx/sweethome3d-3.0-r2',
 * the complete build log and the output of 'emerge -pqv =media-gfx/sweethome3d-3.0-r2'.
 * This ebuild is from an overlay named 'java-overlay': '/var/lib/layman/java-overlay/'
!!! When you file a bug report, please include the following information:
GENTOO_VM=sun-jdk-1.6  CLASSPATH="" JAVA_HOME="/opt/sun-jdk-1.6.0.15"
JAVACFLAGS="-source 1.5 -target 1.5" COMPILER="javac"
and of course, the output of emerge --info
 * The complete build log is located at '/var/tmp/portage/media-gfx/sweethome3d-3.0-r2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-gfx/sweethome3d-3.0-r2/temp/environment'.
 * S: '/var/tmp/portage/media-gfx/sweethome3d-3.0-r2/work/SweetHome3D-3.0-src'


It's a Java program which runs perfectly from an extracted tarball, or when started from their webpage. What is being compiled, and why is it being compiled? I admit to running very few Java programs, but I need this particular one.

I'm assuming that it has something to do with JAVACFLAGS and COMPILER="javac". Can I tell it to simply use the "java" executable to run it and just let it be?

Other 3d java stuff installs file (such as Art of Illusion).
Back to top
View user's profile Send private message
k-root
Guru
Guru


Joined: 08 Jan 2005
Posts: 427

PostPosted: Sat Mar 05, 2011 8:26 pm    Post subject: Reply with quote

http://repository.aduna-software.org/maven2/javax/jnlp/jnlp-api/1.5.0/jnlp-api-1.5.0.jar

Quote:
emerge -pv dev-java/jnlp-bin

_________________
boozo wrote:
Gentoo, ça mange des ours et baffe des buffles par 37°C avec un bob et des tongs
Back to top
View user's profile Send private message
pingufunkybeat
l33t
l33t


Joined: 01 Dec 2004
Posts: 610

PostPosted: Sun Mar 06, 2011 12:15 am    Post subject: Reply with quote

Thanks.

I've emerged dev-java/jnlp-bin (nice catch!), but still get the same error.

Should I put the jnlp-api jar somewhere?

I'm really bad at debugging java stuff :/

EDIT: this bug suggests that it can't be compiled using sun's sdk at all. Very odd.

EDIT2: It also seems like I need icedtea installed to compile this. I think I'll stick to the binary jar for now.
Back to top
View user's profile Send private message
platojones
Veteran
Veteran


Joined: 23 Oct 2002
Posts: 1595
Location: Just over the horizon

PostPosted: Sun Mar 06, 2011 1:58 am    Post subject: Reply with quote

pingufunkybeat wrote:
Thanks.

I've emerged dev-java/jnlp-bin (nice catch!), but still get the same error.

Should I put the jnlp-api jar somewhere?

I'm really bad at debugging java stuff :/

EDIT: this bug suggests that it can't be compiled using sun's sdk at all. Very odd.

EDIT2: It also seems like I need icedtea installed to compile this. I think I'll stick to the binary jar for now.


First of all, thanks for pointing this app out...very cool. Second, yes, you need icedtea to build it...but that's not too big a deal. You can have multiple java VMs on your box and use eselect to choose your system and user vm. I already had both icedtea6 and Sun JDK 1.6 installed, so all I did was use eselect to switch my system vm to icedtea6, build it, then switch back to Sun JDK 1.6...then run it per comment 6 (in a KDE app link) in the bug mentioned above. Works great! Very, very cool app.
Back to top
View user's profile Send private message
k-root
Guru
Guru


Joined: 08 Jan 2005
Posts: 427

PostPosted: Sun Mar 06, 2011 2:04 am    Post subject: Reply with quote

pingufunkybeat wrote:

EDIT: this bug suggests that it can't be compiled using sun's sdk at all. Very odd.




this is a classpath issue .. javaws.jar or jnlp.jar is required.

http://www.sweethome3d.com/support/forum/viewthread_thread,975
_________________
boozo wrote:
Gentoo, ça mange des ours et baffe des buffles par 37°C avec un bob et des tongs
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum