Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (516)
Games in Android Showcase (122)
games submitted by our members
Games in WIP (577)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  God why is it so ^%#$^%  (Read 1548 times)
0 Members and 1 Guest are viewing this topic.
Offline Java Cool Dude

Senior Duke




Java forever


« Posted 2003-08-09 01:50:37 »

complicated to get the milkshape3D for jogl to work?
I mean no matter how hard I tried, I always failed miserably to get it to compile, let's not talk about getting it up and running Roll Eyes.
It reports a missing TGAImage class, so I pull my hair out, get that >||< close to convert nehe's code on my own,  bribe some people here and there and finally I'm told to download some extra utility package.
So I go like "Damn it was about time someone said something that might help me out", I proceed to download the said pachage which contains 3 jar files. Save em to the same place where jogl.jar have always been (Yes I tried putting them in every folder that might be related to java, including....umm ok let's not get naughty Grin ), compile and Errrrrrr I start thinking about suicide as for n + 1 th time today, I'm slapped accross the eyes with the same [insert a lot of cursing in forgein languages, I dunno English doesn't cut it for badass swearing] error message.
Help
Offline tortoise

Junior Duke




<3 Shmups


« Reply #1 - Posted 2003-08-09 01:59:38 »

Alright, relax. It's not that bad. Are you perhaps new to Java in general? It sounds like you're just having lots of classpath problems. Just because you place the new jars in the same folder that jogl.jar is in, doesn't necessarily mean java can find them. Just depends on what setup you've got going.

What IDE, if any, are you using?
Are you using ant?
What errors are you getting?
What does your folder structure look like?
Offline Java Cool Dude

Senior Duke




Java forever


« Reply #2 - Posted 2003-08-09 02:13:12 »

You're right dude, I need to relax a bit /me takes a deeeeeeeep breath ....I'm ok now Smiley
I've been coding java for over a year now, doing 2D stuff including games, demos etc...
The thing is, ever since I switched from notepad in my freshman year to textpad, I never looked back.
I hated Jbuilder, and I'm not a big fan of eclipse either.
[salesman mode on] I like textPad and I truly believe that its simplicity is what it makes it more attractive than any other IDE I tried[/salesman mode off]
This is the erroe I get trying as I try to compile the source code of ms3d laoder
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
F:\JOGL\MilkShape3D\src\MilkshapeModel.java:48: package net.java.games.util does not exist
import net.java.games.util.*;
^
F:\JOGL\MilkShape3D\src\MilkshapeModel.java:686: cannot resolve symbol
symbol  : class TGAImage
location: class MilkshapeModel
            TGAImage texLoader = null;
                ^
F:\JOGL\MilkShape3D\src\MilkshapeModel.java:690: cannot resolve symbol
symbol  : variable TGAImage
location: class MilkshapeModel
                  texLoader = TGAImage.read(filename);
                                    ^
3 errors

Tool completed with exit code 1


And this is what I get hit by in the face when I try to run the bat file that comes with the loader
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
F:\JOGL\MilkShape3D>java -jar nehe31.jar
INIT GL IS: net.java.games.jogl.impl.windows.WindowsGLImpl
Force TGA : data/Wood.TGA
java.lang.NoClassDefFoundError: net/java/games/util/TGAImage
        at MilkshapeModel.LoadGLTextures(MilkshapeModel.java:690)
        at MilkshapeModel.reloadTextures(MilkshapeModel.java:660)
        at MilkshapeModel.loadModelData(MilkshapeModel.java:555)
        at MilkshapeModel.loadModelData(MilkshapeModel.java:399)
        at Nehe31$Renderer.init(Nehe31.java:116)
        at net.java.games.jogl.impl.GLDrawableHelper.init(GLDrawableHelper.java:
68)
        at net.java.games.jogl.GLCanvas$InitAction.run(GLCanvas.java:201)
        at net.java.games.jogl.impl.windows.WindowsGLContext.makeCurrent(Windows
GLContext.java:144)
        at net.java.games.jogl.impl.windows.WindowsOnscreenGLContext.makeCurrent
(WindowsOnscreenGLContext.java:110)
        at net.java.games.jogl.impl.GLContext.setRenderingThread(GLContext.java:
253)
        at net.java.games.jogl.GLCanvas.setRenderingThread(GLCanvas.java:162)
        at net.java.games.jogl.Animator$1.run(Animator.java:89)
        at java.lang.Thread.run(Thread.java:534)


Now here's the structure of my JDK
http://www.realityflux.com/abba/grrrrr.jpg

Thanks for the help dude, I appreciate it ^_^
/me goes out relaxing a bit
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline tortoise

Junior Duke




<3 Shmups


« Reply #3 - Posted 2003-08-09 02:47:20 »

Take a look inside your jogl-demo-util.jar. I just pulled it down from jogl's site again and it looks like it has a different package structure.

It looks to me like it's demos.util.TGAImage

so just change it to "import demos.util.*", and that looks like it will fix it.

And damn dude, Textpad without Ant? That's some scary stuff Smiley
Offline Java Cool Dude

Senior Duke




Java forever


« Reply #4 - Posted 2003-08-09 03:00:58 »

You Sir got my first born
















...not really ^_^, but thanks everything works as a charm, now  I can get that stencil shadow demo to work even better
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

TehJavaDev (32 views)
2014-10-27 03:28:38

TehJavaDev (26 views)
2014-10-27 03:27:51

DarkCart (41 views)
2014-10-26 19:37:11

Luminem (22 views)
2014-10-26 10:17:50

Luminem (27 views)
2014-10-26 10:14:04

theagentd (33 views)
2014-10-25 15:46:29

Longarmx (61 views)
2014-10-17 03:59:02

Norakomi (58 views)
2014-10-16 15:22:06

Norakomi (47 views)
2014-10-16 15:20:20

lcass (43 views)
2014-10-15 16:18:58
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!