New software jSDN

Discussion in 'Software' started by Humberto, Jun 12, 2008.

  1. Humberto
    Joined: Mar 2008
    Posts: 47
    Likes: 2, Points: 0, Legacy Rep: 55
    Location: Spain

    Humberto Junior Member

    I misunderstood the problem. If Java 3D is installed, and jSDN can not found the libraries (that is the error you get), can be because of some reasons (which are not limited to):

    a) the package, by whatever reason, is not installed properly (less probable)
    b) you have more than one Java Virtual Machine, and you installed Java 3D in a different one than the default,which is used by jSDN (more probable).

    I do not htink installing j3D 1.4 will for sure solve the problem. I migth give a try to teh following first: check how may java virtual machines you have, and for each one if a file vecmath.jar is present in any part of its lib directory.

    I do not know if I am being clear. If not, tell me and I will try to re-explain in.

    Humberto
     
  2. pdw
    Joined: Jun 2008
    Posts: 13
    Likes: 0, Points: 0, Legacy Rep: 10
    Location: Mexico

    pdw Junior Member

    Humberto,
    as I´m not a Java specialist, I don´t know how to check how many java virtual machine I have in my computer, but I did the following:
    1) in the folder "Program files" (which is called "Archivos de Programas", I have a Spanish sistem) I found a JAVA folder.

    2) In the JAVA folder i Have the following folders:
    - jre1.5.0_09
    - jre1.5.0_10
    - jre1.5.0_11
    - jre1.6.0_01
    - jre1.6.0_02
    - jre1.6.0_03
    - jre1.6.0_05
    - jre6
    -Java3D
    all these folders with a bin and a lib folder inside.

    3)I made a seach for vecmath.jar and only found 01 file in C:\Archivos de programa\Java\Java3D\1.5.1\lib\ext

    No other vecmath.jar where found.
    In the JAVA control panel I didn´t find and strange thinks, all the version above mencioned are checked and working, but I was unable to see the JAVA3d.

    Thats all I can do for the moment. Any advice will be really apreciated.:(
     
  3. DuncanG
    Joined: Oct 2007
    Posts: 12
    Likes: 0, Points: 0, Legacy Rep: 10
    Location: Scotland

    DuncanG Junior Member

    Now I remember why I hate Java so much!

    Humberto have you never tested this on windows?

    Some problems and workarounds when using jSDN on windose:
    1) the installer for Java3D is lame, it installs the files but doesn't tell the JVM where they are.
    fix: find the Java3D installation and copy the bin and lib directories to the appropriate JRE directory (there will be bin and lib sub-dirs there already). There may be more elegant fixes but why polish a turd (ie Java).

    So that allows the program to start an bring up the GUI workspace but it wont load designs.
    2) there is a problem in jSDN with the directory separator '\'
    fix: try and load the design you want, and when it wont load exit the program. Now edit the file <jsdn location>\config\editor.conf and find the line somewhat like this:
    DEF_DESIGN=C\:\\Boat\\jSDN-1.0\\designs\\yd40\\yd40.sdn
    and change it to something like this:
    DEF_DESIGN=C\:/Boat/jSDN-1.0/designs/yd40/yd40.sdn
    or the more correct but utterly stupid:
    DEF_DESIGN=C\:\\\\Boat\\\\jSDN-1.0\\\\designs\\\\yd40\\\\yd40.sdn
    restart the program and with luck the design will have loaded.

    There's another exception listed in the log file:
    Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
    at sdn.editor.EditorWindow.�00000(Unknown Source)
    at sdn.editor.E$_o.mouseMoved(Unknown Source)
    at java.awt.Component.processMouseMotionEvent(Unknown Source)
    at javax.swing.JComponent.processMouseMotionEvent(Unknown Source)
    at java.awt.Component.processEvent(Unknown Source)
    I havent looked into that yet.

    Thats as far as I've got so far.
     
  4. Humberto
    Joined: Mar 2008
    Posts: 47
    Likes: 2, Points: 0, Legacy Rep: 55
    Location: Spain

    Humberto Junior Member

    Well, it might be a matter of taste. Or even productivity. But I do not see it is worth discussing it in this thread.

    Well, obviously not that much. I must say I always develop on Mac, which produces consistent Linux versions as well. And almost all things, if carefully coded, work smoothly in Windows.

    I do not have a Windows machine, but I am planning to get one just for testing. Meanwhile, I rely on some testers.

    I was just proposing the same thing to pdw.

    The DEF_DESIGN parameter only controls the default model. In any case, the "Load" menu of the software should open any design file, no matter the content of the parameter. Any time the jSDN software is closed, the DEF_DESIGN is updated with the last model saved.

    I will check the file naming conversions, try it on windows, and produce a new release. I will keep you all informed.

    This is one of these windows things differences (timing of starting threads). I believe this only happens once. If not tell me, because it might be a different thing. If it only happens once, I will try to solve for the next Windows release (coming soon).

    Humberto
     
  5. pdw
    Joined: Jun 2008
    Posts: 13
    Likes: 0, Points: 0, Legacy Rep: 10
    Location: Mexico

    pdw Junior Member

    DuncanG and Humberto,
    Thanks both for your reply. Just one question before I go further:
    Do you mean that I need to copy the content of both folders (Bin and Lib) in the correspondant folder I can found in the JRE Folder?

    Thanks

    Patrick
     
  6. Humberto
    Joined: Mar 2008
    Posts: 47
    Likes: 2, Points: 0, Legacy Rep: 55
    Location: Spain

    Humberto Junior Member

    Yes. Without deleting what is already there.

    Humberto
     
  7. pdw
    Joined: Jun 2008
    Posts: 13
    Likes: 0, Points: 0, Legacy Rep: 10
    Location: Mexico

    pdw Junior Member

    Thanks to your suggestions, the program works now.
    To resume and clarify for those who as myself are not expert in JAVA.
    1- Download the JAVA 3D executable file from http://java.sun.com/javase/technologies/desktop/java3d/
    2- Execute the downloaded file.
    3- Copy the content from both folders (bin and lib) from the JAVA 3D folder to the correspondent bin/lib folder in your active JAVA folder. (You find them in C:\Program files\Java)


    Patrick
     
  8. pdw
    Joined: Jun 2008
    Posts: 13
    Likes: 0, Points: 0, Legacy Rep: 10
    Location: Mexico

    pdw Junior Member

    Now the program is working, at the moment I can only confir the following remark from DuncanG:
    This work for me too. Doesn´t have more time today to start using the program more in deep, but as soon as I can, I will report my findings.

    Patrick
     
  9. farjoe
    Joined: Oct 2003
    Posts: 163
    Likes: 1, Points: 18, Legacy Rep: 26
    Location: med

    farjoe Senior Member

    this is probably a stupid question but i don't know the answer anyway so here goes:

    i am running vista home edition on a turion64 computer.

    when i try to install java3d using java3d-1 5 1-windows-amd64.exe i get the following error:

    "this installation package is not supported by this processor"

    Should i be running the 32 version even though i have an amd64 cpu?
     
  10. DuncanG
    Joined: Oct 2007
    Posts: 12
    Likes: 0, Points: 0, Legacy Rep: 10
    Location: Scotland

    DuncanG Junior Member

    Humberto, I'm going to try running it on linux (Ubuntu-7). What JVM do you recommend?

    I had it running on Sun Java-6 but it was dreadfully slow even by Java standards. So I suspect there is a better Java for linux but which?
     
  11. Humberto
    Joined: Mar 2008
    Posts: 47
    Likes: 2, Points: 0, Legacy Rep: 55
    Location: Spain

    Humberto Junior Member

    Just an estupid question: do you have Java already installed? (I got a similar error 30 minutes ago when installing J3D on a clean Windows XP installation and it was because Java was missing :)

    Otherwise, if Vista Home is not 64 bits, you should be installing the 32 bits anyway.

    Humberto
     
  12. Humberto
    Joined: Mar 2008
    Posts: 47
    Likes: 2, Points: 0, Legacy Rep: 55
    Location: Spain

    Humberto Junior Member

    I do not believe a different VM will go much better. I know the effect, because I experienced it yesterday afternoon when installing jSDN in Ubuntu 9, 64 bits. And it was tooooooo slow. I am trying to discover why, but meanwhile, a solution is deactivating 2D shading in jSDN (menu View -> 2D Rendering -> Wireframe).

    The next revision (really soon) will have this as a configuration option. Now it always starts with shading on.

    Humberto
     
  13. yipster
    Joined: Oct 2002
    Posts: 3,486
    Likes: 97, Points: 58, Legacy Rep: 1148
    Location: netherlands

    yipster designer

    you admirable endless idealist, i'm still following this thread and will give it another try soon
    unfortunitly Ubuntu 64 is not compatable yet with most cad programs rite?
    i have vista premium oem 64 installed now and 64 cad software installs take attention
    only 1 old 16 bit program wouldnt run but guess even for that is a solution
    geez, when can i go back to study the drawing program updates and DRAW
     
  14. DuncanG
    Joined: Oct 2007
    Posts: 12
    Likes: 0, Points: 0, Legacy Rep: 10
    Location: Scotland

    DuncanG Junior Member


    Unfortunately it doesn't seem to remember that setting from session-session.
     

  15. Humberto
    Joined: Mar 2008
    Posts: 47
    Likes: 2, Points: 0, Legacy Rep: 55
    Location: Spain

    Humberto Junior Member

    :)
    The problem with the machine I tried is lack of appropriate drivers (graphics card), which makes on screen drawing rather slow. I should be only a matter of time, but who knows when!

    Humberto
     
Loading...
Forum posts represent the experience, opinion, and view of individual users. Boat Design Net does not necessarily endorse nor share the view of each individual post.
When making potentially dangerous or financial decisions, always employ and consult appropriate professionals. Your circumstances or experience may be different.