java 3D zum laufen bringen

tanzverfuehrung

Bekanntes Mitglied
Ich wollte einfach mal ein einfaches 3DProgramm ausprobieren und wollte dem tutorial folgen!
Ich habe hier java3D gedownloaded.

Mein erstes Problem liegt darin, das ich nicht weiß, ob es reicht, wenn ich ein Java-Project anlege oder muss es ein Plugin-Project sein?

Ich habe es jetzt mit beidem versucht und habe den grundcode aus dem tutorial rein kopiert.

bei dem plugin-project habe ich in der manifest bei depenencies das java3d.jar hinzugefügt
und somit lässt es sich schon mal complilieren.

bei dem java-project und auch bei dem plugin-project habe ich ein 3DLib erstellt mit alle *.jars , die in der ZIp datei waren, hinzugefügt.

Ich kriege jetzt immer eine exception und zwar:
Jan 07, 2013 1:32:18 PM javax.media.j3d.NativePipeline getSupportedOglVendor
Schwerwiegend: java.lang.;:) no j3dcore-ogl-chk in java.library.path
Exception in thread "main" java.lang.UnsatisfiedLinkError: no j3dcore-d3d in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1860)
at java.lang.Runtime.loadLibrary0(Runtime.java:845)
at java.lang.System.loadLibrary(System.java:1084)
at javax.media.j3d.NativePipeline$1.run(NativePipeline.java:189)
at java.security.AccessController.doPrivileged(Native Method)
at javax.media.j3d.NativePipeline.loadLibrary(NativePipeline.java:180)
at javax.media.j3d.NativePipeline.loadLibraries(NativePipeline.java:137)
at javax.media.j3d.MasterControl.loadLibraries(MasterControl.java:948)
at javax.media.j3d.VirtualUniverse.<clinit>(VirtualUniverse.java:280)
at java3dproject.Welt.<init>(Welt.java:31)
at java3dproject.Welt.main(Welt.java:67)

ICh habe schon gegoogelt ohne ende.wo ich dann sowas finde, wie:
To add the jar's to a specific project's classpath:

Right-click (or cmd-click on mac?) your project in the Project Explorer view and choose Properties > Java Build Path > Libraries.
Add the folder "\System\Library\Java\Extensions" by clicking the "Add External Class Folder..." button

EDIT:

I would suggest the following, given that

you have the JDK (version 1.5.0 or higher) installed
you have Eclipse for Java or Java EE developers installed (not Eclipse Classic for example)
you can build a vanilla, HelloWorld Java application already

Basically, it sounds like you might not have added the Java 3D api's to your JRE. The download you linked to in your original question contains a help file named README-unzip.html, which is where I obtained the following instructions from:

aber genau das habe ich ja eigentlich auch gemacht oder?
bzw arbeite ich mit eclipse indigo?ist das der fehler???

bzw habe ich auch gefunden:
Include the .dll file in your system's classpath, and then restart eclipse.

jedoch hatte ich in meiner gedownloadet java3d datei garkiene *.dll datein also habe ich noch hier die java 3d gedownloaded...und habe die *.dll datei unter >Build Path>Configure Build Path>Libararies>Add External Class Folder.... hinzugefügt.
eclipse neu gestartet und alles...jedoch kommt immer wieder diese s***** EXCEPTION!

und ich weiß nicht mehr weiter und bräuchte dringend hilfe!!!!!!!!!;(???:L
 

Marco13

Top Contributor
Mal schrittweise: Nach der Installation von Java3D sollte es ein Verzeichnis geben
C:\Programme\Java\Java3D...
Wenn das schon da ist: OK.

In Eclipse muss man dann nur ein ganz normales Java-Projekt erstellen. Manchmal findet er die JARs dann automatisch, aber das hängt wohl von so vielen Faktoren ab, dass man davon nicht ausgehen kann. Im zweifelsfall muss man unter "Build Path -> Add External JAR" die JARs hinzufügen, die im Java3D/bin-Unterverzeichnis liegen (das ist eigentlich schlecht, weil man sich damit eine Abhängigkeit zu einem fest vorgegebenen Dateipfad einhandelt, aber sollte erstmal compilieren). Kopieren muss man da üblicherweise nichts, weder JARs noch DLLs...
 

Marco13

Top Contributor
Ehrlich gesagt weiß ich gerade nicht, ob ich zuletzt von java.net oder oracle runtergeladen hatte, und ob das beides nicht vielleicht dieselbe Datei ist - auf jeden Fall hatte ich einen Installer (EXE) verwendet. Das Plugin habe ich noch nicht ausprobiert...
 

tanzverfuehrung

Bekanntes Mitglied
also ich habe jetzt Java Archive Downloads -Java Client Technologies installiert, und da hatte ich dann auch wirklich eine istallation vorher hatte ich immer nur *.zip ordner....
ich habe deinen schritten gefolgt, jedoch sind bei mir die *.jar's bei mir nicht im Java3D/bin sondern im Java3D\1.5.1\lib\ext . im bin ordner liegen nur *.dll Datein.
Und ich kriege immer noch die die Exception:

Jan 07, 2013 4:01:10 PM javax.media.j3d.NativePipeline getSupportedOglVendor
Schwerwiegend: java.lang.UnsatisfiedLinkError: no j3dcore-ogl-chk in java.library.path
Exception in thread "main" java.lang.UnsatisfiedLinkError: no j3dcore-d3d in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1860)
at java.lang.Runtime.loadLibrary0(Runtime.java:845)
at java.lang.System.loadLibrary(System.java:1084)
at javax.media.j3d.NativePipeline$1.run(NativePipeline.java:189)
at java.security.AccessController.doPrivileged(Native Method)
at javax.media.j3d.NativePipeline.loadLibrary(NativePipeline.java:180)
at javax.media.j3d.NativePipeline.loadLibraries(NativePipeline.java:137)
at javax.media.j3d.MasterControl.loadLibraries(MasterControl.java:948)
at javax.media.j3d.VirtualUniverse.<clinit>(VirtualUniverse.java:280)
at Welt.<init>(Welt.java:18)
at Welt.main(Welt.java:50)

ich habe auch eine datei j3dcore-ogl-chk.dll im /bin ordner.Jedoch weiß ich nicht was ich damit tun soll???:shock:
 

Marco13

Top Contributor
Jetzt solltest du in Eclipse links bei "Referenced Libraries" die Java3D-Jar rechtsklicken können, und dort dann irgendwo die "Native Library Location" festlegen können, auf genau diesen ordner. (Nochmal: Das könnte man ggf. auch "schöner" machen, aber ... damit's erstmal läuft...)
 

tanzverfuehrung

Bekanntes Mitglied
Jetzt solltest du in Eclipse links bei "Referenced Libraries" die Java3D-Jar rechtsklicken können, und dort dann irgendwo die "Native Library Location" festlegen können, auf genau diesen ordner. (Nochmal: Das könnte man ggf. auch "schöner" machen, aber ... damit's erstmal läuft...)

ich habe drei *.jar datein
vecmath.jar
j3dcore.jar
j3dutils.jar

soll ich bei allen drei *.jar datein die "Native Library Location" festlegen ??
oder reicht das, wenn ich das bei einer mache?und ist egal bei welcher?

es funktioniert aufjedenfall schon und ich danke dir:toll::applaus:
 

tanzverfuehrung

Bekanntes Mitglied
Ich habe jetzt noch eine Lösung gefunden, dass die exception nicht mehr auftritt und wollte fragen, ob die nun besser ist?

In der "Run Configuration" des Eclipse-Projekts wird auf dem Karteireiter "Environment" eine neue Environment Variable "PATH" zugefügt, die auf das "bin"-Verzeichnis der Java3D-Implementation zeigt.


so funktioniert es aufjedenfall auch :idea:
 

Marco13

Top Contributor
Ja, das wäre eine der angedeuteten alternativen Möglichkeiten. Eine weitere ist, bei den VM-Arguments den -Djava.library.path=... anzugeben. (Eigentlich dachte ich, dass der Installer das Verzeichnis direkt zum PATH hinzufügt, aber bei neueren Versionen machte er das glaub' ich nicht mehr... :bahnhof: )
 
Ähnliche Java Themen
  Titel Forum Antworten Datum
T Eclipse Java Projekt funktioniert in Eclipse, aber nach export kein Dateizugriff IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
C In Eclipse Einrückung im Java-Editor einstellen IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
J Erstellen eines java Projekts mit Gradel in netbeans. IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 12
I Suche eine IDE in deutsch für Java und Android IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 20
Jose05 UML Diagramme aus Java Code erstellen oder andersherum IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
T Eclipse von Java 1.8 auf 17 IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 6
B Probleme beim erstellen von Java Class IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
F Eclipse für Java 1.8 ARM einrichten IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 6
M import org.bukkit.plugin.java.JavaPlugin; funktioniert nicht IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 17
I NetBeans 15 - Strg+Z (undo) und Strg+Y (redo) funzen nicht mehr nach Start der Java-Anwendung IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 8
R Java auf Linux gibt mir ein Fehler in der Konsole, wie löse ich sowas? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
K Java Editor Problem IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
M Altes Java Projekt in Netbeans importieren IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
O Escape-Sequenzen in Java \b wird in Konsole falsch dargestellt IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
O Java Eclipse Umlaute werden nicht richtig dargestellt in Konsole IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 10
B .exe Datei für Eclipse Java Programm erstellen? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 9
B Wie nicht-java Datei mit Eclipse benutzen (Excel Datei einlesen)? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 16
J Eclipse - kein Server verfügbar zum ausführen meines Java Projektes IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 12
T Java-Version für BlueJ-Mac-Version IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
O NetBeans Java Projekt OHNE Maven erstellen IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 1
O NetBeans Java Projekt OHNE Maven IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 0
Jose05 Wie kann man aus einem Java-Code native Apps erstellen? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 16
J Java-File Import IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 12
brypa Probleme mit Java N-IDE App IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 8
Zrebna Eclipse Für Nutzung von JPA zwingend 'IDE for Java EE Developers notwendig'? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 5
P Error occurred during initialization of boot layer java.lang.module.FindException: Error reading module: IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
Robertop Groß- und Kleinschreibung bei Java-Templates ändern IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
sham5 Eclipse-Remote-Debugging von Java mit mehreren Prozessen oder Ports oder Netzen IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 0
Z java.lang.ClassNotFoundException: org.mariadb.jdbc.Driver IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 6
M Eclipse - Fehlermeldung bei JavaFX-Projekt "java.lang.module.FindException: Module javafx.controls not found" IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 23
N Eclipse aus Java-Application JavaFX machenModule javafx.controls not found IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 7
G Java Eclipse IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 1
M Einzelne Java-Dateien mit Eclipse compilieren - Wie geht das? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 5
Robertop Eclipse Eclipse Startprobleme "Java was started but returned exit code=1" IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 6
B standard-version für Java IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 14
B Netbeans: Java Script Libraries funktioniert nicht IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 6
coolian warum bekomm ich immer wieder wenn ich irgendwas mach eine java.lang.nullpointer exception in eclipse IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
M NetBeans Buildprozess inkludiert nicht die Classpath-Pakete (Java Ant) IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 10
Tommy135 Error not found java.dll IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 5
K Eclipse EE und Java FX Autocomplete Probleme IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 0
O Eclipse aufräumen Java Projekte sortieren IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 1
H Eclipse Konsole gibt falsches Java Projekt aus IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 6
D Java Konsole gibt seit neustem nichts mehr aus. IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
J NetBeans Download NetBeans und Java SDK IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
N NetBeans Java Code too large, wie *.java splitten? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 12
T Suche einen guten Java-Obfuscator? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
K Eclipse für Java, Python und C/C++ IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 5
W Java Byte Code Engineering Library (BCEL) Installation IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 5
R Unterschied zwischen Eclipse JDT und Java JDK IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
WetWer Welcher Java Editor wird empfolen? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 12
R Cygwin in der Java Entwicklung IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
P Java IDE auswählen / einrichten IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 9
N Eclipse Probleme beim Einrichten von Java Card Umgebung IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
R Suche Benchmark- /Stresstesttools zur performance Testung von Java Anwendungen IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 1
M Eclipse Java-Formatter IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 0
L0MiN Java Editor Spinnt nur mein Java Editor? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
D Java-Anwendung blockiert IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 0
M Eclipse Java Eclipse Windowbuilder - interaktive Diaglog-GUI IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 15
D NetBeans Maven Projekt in Netbeans => WEKA wirft (java.lang.OutOfMemoryError: Java heap space) IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 0
A IDEA IntelliJ IntelliJ Maven oder Webprojekt, kann keine normalen Java Klassen erstellen IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
P Java ohne IDE IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 15
M Java installiert sich falsch. IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 5
M NetBeans java DB - The signer certificate will expire within six months. IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 0
M Java als Standalone application ausführen IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
W Eclipse nach Java Update 8 Ant Probleme IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
O Eclipse Pfad zur Java-Source ändert sich automatisch IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
A Eclipse Export/Auscheacken des Java-Projekts aus Eclipse für anderen Distributionen IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 9
S Eclipse Java 3d in Eclipse einbetten IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 11
M Java-Code in C++ übersetzen IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
J Eclipse Automatischer Import (wie java.lang) IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 10
J Jemand ne Ahnung warum meine Java Fenster immer schwarz werden? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 7
T Eclipse Java-Klassen aus dem einen in ein anderes Projekt einbinden IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
J IDEA IntelliJ Java source code und Dokumentation IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
S Frage zu Java IDE Android IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
T Eclipse Java src einbinden IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
F Java Editor Label Farbe IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
U Quellcode zwischen Java- und Androidprojekt teilen IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
D Java IDEdroid IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
P Netbeans: Java-Plattformen verwalten IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
X JAVA Turtle IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
A .java kontroller IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
I Java-Editor geht nicht IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 6
H Eclipse Klasse in mehr Java Projekten verwenden IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 6
T Eclipse Probleme Eclipse + Java 7 IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 9
S Eclipse Java + Shellscript mit Maven und Eclipse IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 11
F Eclipse: java.lang.NullPointerException bei System.console().printf() IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 14
A UML-Tool mit Java Source Code-Generator gesucht IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
firefexx Kleines Java Projekt - Versionsverwaltung IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
L GiT und Java IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 9
A java.lang.UnsatisfiedLinkError IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
C Java-Decompiler IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
H Java Dateien in einen runnable jar packen mit eclipse IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
M Eclipse (Java) Cannot connect to VM IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
R Eclipse Run Java Application und JMF IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 8
F Eclipse Eigene Java Bibliothek erstellen/einbinden (ECLIPSE) IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
T Eclipse Jython-Lib in Java-Projekt einbinden IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
P java keytool fehler (Linux) IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 8
B Eclipse import java. dann kommt kein Fenster IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
I Java Quellcode synchronisieren IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
P Eclipse Fehler: java was started but returned exit code 13 IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 11

Ähnliche Java Themen

Neue Themen


Oben