|
Sweet Home 3D Forum » List all forums » » Forum: Developers » » » Thread: Sweet Home 3D on Ubuntu 15.04 (Vivid Vervet), Java 8 fixed » » » » Post: Sweet Home 3D on Ubuntu 15.04 (Vivid Vervet), Java 8 fixed |
Print at Dec 16, 2025, 1:35:51 PM |
| Posted by DmitriB at Sep 5, 2015, 7:15:40 PM |
Sweet Home 3D on Ubuntu 15.04 (Vivid Vervet), Java 8 fixedDear all, I just fixed working Sweet Home 3D on Ubuntu 15.04 (Vivid Vervet) OS: Ubuntu 15.04 (Vivid Vervet) 64 bit Java: Oracle's Java(TM) SE Runtime Environment (build 1.8.0_60-b27) Java 3D and : 1.6.0-pre12-daily-experimental, upgraded according to information in https://gouessej.wordpress.com/2012/08/01/jav...e-retour-java-3d-is-back/ I installed SH3D in $HOME/SweetHome3D-5.0 All updated and new jars were added in $HOME/SweetHome3D-5.0/lib directory. I wrote a bash script to get SH3D running on. You can read it below to get details. I guess It should be similar way to update Java 3d for Windows and MacOS. Hope this information will be useful for developers and everyone, particularly to make SH3D work better on Linuxes and various OSes. Regards, Dmitri Bezgodov ==BASH SCRIPT to start SH3D=== ====CUT HERE ==== #!/bin/sh # This is a bash script for Sweet Home 3D # Tested on UBUNTU 15.04 64bit with Oracle Java 8 JDK insalled # Author: Dmitri Bezgodov mailto: [email protected] # The function checks if string contains a given substring stringContain() { [ -z "${2##*$1*}" ]; } # CHECK JAVA & JAVA VENDOR INSALLJAVAMSG="Please install Oracle JDK by command:\nsudo apt-get install oracle-java8-installer" JAVA=$(which java) if [ $? -ne 0 ]; then echo -e ${INSTALLJAVAMSG} exit 1 fi VENDOR=$(${JAVA} -XshowSettings 2>&1 |grep 'java.vendor = ') if stringContain "Oracle"; then echo "Java Vendor is Oracle. Looks good. Here we go.." else echo -e ${INSTALLJAVAMSG} exit 1 fi # GET JAVA RE HOME # E.g. java.home = /usr/lib/jvm/java-8-oracle/jre JRE_HOME=$(${JAVA} -XshowSettings 2>&1 |grep 'java.home = '|awk '{ print $3}') # Sweet Home 3D Version VER='5.0' # Retrieve Sweet Home 3D directory. Take attention on its version SWEET_HOME="${HOME}/SweetHome3D-${VER}" ##echo "TEST: ${SWEET_HOME}" if [ ! -d "${SWEET_HOME}" ] ; then echo "Please set up SWEET_HOME_3D Directory to where Sweet Home 3d has been installed." echo -e "E.g. here ${SWEET_HOME}" exit 1; fi # Build Jars for CLASSPATH JARPATH="${JRE_HOME}/lib/javaws.jar" for JAR in ${SWEET_HOME}/lib/*.jar ; do JARPATH="${JARPATH}:${JAR}" done ##echo "TEST: $JARPATH" ${JAVA} -Xmx1024m -classpath "$JARPATH" \ -Djava.library.path="${SWEET_HOME}"/lib \ -Dcom.eteks.sweethome3d.applicationId=SweetHome3D#Installer \ com.eteks.sweethome3d.SweetHome3D \ -open "$1" \ -Djava.library.path="${SWEET_HOME}"/lib \ -Dcom.eteks.sweethome3d.applicationId=SweetHome3D#Installer \ com.eteks.sweethome3d.SweetHome3D \ -open "$1" === CUT HERE ==== |
|
|
Current timezone is GMT Dec 16, 2025, 1:35:51 PM |