Index  | Recent Threads  | List Attachments  | Search
 Welcome Guest  |  Register  |  Login
Login Name  Password
 

Sweet Home 3D Forum



No member browsing this thread
Thread Status: Active
Total posts in this thread: 52
Posts: 52   Pages: 6   [ Previous Page | 1 2 3 4 5 6 | Next Page ]
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 263620 times and has 51 replies Next Thread
emirhanbskc
Newbie



Türkiye
Joined: Jun 13, 2021
Post Count: 5
Status: Offline
Reply to this Post  Reply with Quote 
Re: Sweet Home 3D JS Online

I did not get any warning or error on transpiledLibraries section. Also I did not get error for j4ts-batik-svgpathparser-1.10.0-20170726/bundle.js, j4ts-swingundo-1.8.132-20170726/bundle.js and j4ts-awtgeom-1.8.132-20200519/bundle.js. They created but only tools/JSweet/build/js/bundle.js file not created. So ant says I can not move that file(tools/JSweet/build/js/bundle.js).
[Jun 14, 2021, 11:28:48 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9426
Status: Offline
Reply to this Post  Reply with Quote 
Re: Sweet Home 3D JS Online

The project was built under Mac OS X and can't be built under Windows and Linux at the moment. We'll hopefully fix that in a coming version.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator
[Jun 18, 2021, 11:15:56 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9426
Status: Offline
Reply to this Post  Reply with Quote 
Re: Sweet Home 3D JS Online

Finally, the error under Windows can be fixed easily: in build.xml Ant file, just replace colons (:) in the two following lines
<arg value="../SweetHome3D/src:tools/JSweet/src" />
<arg value="def:com/eteks/sweethome3d/model:com/eteks/sweethome3d/tools:com/eteks/sweethome3d/viewcontroller:com/eteks/sweethome3d/io" />
by ${path.separator} (see fix here).

By the way, if you want to generate SweetHome3DJS.war file, don't forget to run Ant default target in SweetHome3D project too. SweetHome3D.jar is required to generate the war file.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator
[Jun 18, 2021, 11:57:17 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
chukwu
Newbie



Nigeria
Joined: Jun 25, 2021
Post Count: 4
Status: Offline
Reply to this Post  Reply with Quote 
Re: Sweet Home 3D JS Online

Hello, AMAZING STUFF Puybaret.

I have been having issues building the war file for SweetHome3DJS.

the .jar for SweetHome3D builds successfully, but all the ant commands fail for SweetHome3DJS

BUILD FAILED
/Users/sweethome3d-code-r7868-trunk/SweetHome3DJS/build.xml:88: The following error occurred while executing this line:
[Jul 6, 2021, 7:25:54 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9426
Status: Offline
Reply to this Post  Reply with Quote 
Re: Sweet Home 3D JS Online

As you didn't report the error, it's difficult to help you.
Did you read the discussion with emirhanbskc which might help you?
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator
[Jul 7, 2021, 2:16:30 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
chukwu
Newbie



Nigeria
Joined: Jun 25, 2021
Post Count: 4
Status: Offline
Reply to this Post  Reply with Quote 
Re: Sweet Home 3D JS Online

Hello, yes, I read the discussion, i have done everything in the readme, everything else builds, am I meant to put the sweethome3d.jar in any particular folder after building it?

How do i report the error, can i put a log here?

this is where the error starts:

transpiledLibraries:
[javac] /Users/Downloads/sweethome3d-code-r7868-trunk/SweetHome3DJS/build.xml:30: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[java] INFO: JSweet transpiler version 2.4.0-RC1 (build date: 2020-07-21 17:21:35)
[java] 2021-07-07 18:13:40.040 ERROR JSweetConfig:149 - class jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to class java.net.URLClassLoader (jdk.internal.loader.ClassLoaders$AppClassLoader and java.net.URLClassLoader are in module java.base of loader 'bootstrap')
[java] java.lang.ClassCastException: class jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to class java.net.URLClassLoader (jdk.internal.loader.ClassLoaders$AppClassLoader and java.net.URLClassLoader are in module java.base of loader 'bootstrap')
[java] at org.jsweet.JSweetConfig.initClassPath(JSweetConfig.java:86)
[java] at org.jsweet.JSweetCommandLineLauncher.transpileWithArgs(JSweetCommandLineLauncher.java:270)
[java] at org.jsweet.JSweetCommandLineLauncher.main(JSweetCommandLineLauncher.java:239)
[java] 2021-07-07 18:13:40.040 INFO JSweetCommandLineLauncher:671 - input dirs: [../SweetHome3D/src, tools/JSweet/src]
[java] 2021-07-07 18:13:40.040 INFO JSweetCommandLineLauncher:682 - classpath: null
[java] 2021-07-07 18:13:40.040 INFO JSweetCommandLineLauncher:697 - included: [def.*, com/eteks/sweethome3d/model.*, com/eteks/sweethome3d/tools.*, com/eteks/sweethome3d/viewcontroller.*, com/eteks/sweethome3d/io.*]
[java] 2021-07-07 18:13:40.040 INFO JSweetCommandLineLauncher:698 - excluded: []
[java] 2021-07-07 18:13:40.040 INFO JSweetCommandLineLauncher:747 - ts output dir: tools/JSweet/build/ts
[java] 2021-07-07 18:13:40.040 INFO JSweetCommandLineLauncher:754 - js output dir: tools/JSweet/build/js
[java] java.lang.IllegalAccessError: superclass access check failed: class org.jsweet.transpiler.util.AbstractTreeScanner (in unnamed module @0x2eb231a6) cannot access class com.sun.tools.javac.tree.TreeScanner (in module jdk.compiler) because module jdk.compiler does not export com.sun.tools.javac.tree to unnamed module @0x2eb231a6

warm regards
[Jul 7, 2021, 6:16:16 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9426
Status: Offline
Reply to this Post  Reply with Quote 
Re: Sweet Home 3D JS Online

Building Sweet Home 3D JS project requires JDK 8, and not a further version. Is it your case?
[Note that building recent versions requires JDK 11, not JDK 8]
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator
----------------------------------------
[Edit 1 times, last edit by Puybaret at Aug 12, 2022, 7:19:08 PM]
[Jul 8, 2021, 11:43:29 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
chukwu
Newbie



Nigeria
Joined: Jun 25, 2021
Post Count: 4
Status: Offline
Reply to this Post  Reply with Quote 
Re: Sweet Home 3D JS Online

yes please, my mac uses jdk 8. Do I have to put the sweethome3d.jar in any specific folder to aid the building?
[Jul 10, 2021, 12:23:08 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9426
Status: Offline
Reply to this Post  Reply with Quote 
Re: Sweet Home 3D JS Online

I'm pretty sure you're not using JDK 8 to build the project. I just tried with JDK 15 and got the same error. If you use Terminal, set JAVA_HOME environment variable to ensure Ant uses the right JDK.
Do I have to put the sweethome3d.jar in any specific folder to aid the building?
No, just leave it in its default place, but SweetHome3D and SweetHom3DJS projects must be in the same folder.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator
[Jul 12, 2021, 3:21:30 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
chukwu
Newbie



Nigeria
Joined: Jun 25, 2021
Post Count: 4
Status: Offline
Reply to this Post  Reply with Quote 
Re: Sweet Home 3D JS Online

Thanks alot, I eventually used my windows compartment to build it. It works!
[Jul 15, 2021, 8:43:29 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Posts: 52   Pages: 6   [ Previous Page | 1 2 3 4 5 6 | Next Page ]
[ Jump to Last Post ]
Show Printable Version of Thread  Post new Thread

  Get Sweet Home 3D at SourceForge.net. Fast, secure and Free Open Source software downloads  
© Copyright 2024 Space Mushrooms - All rights reserved