Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (481)
Games in Android Showcase (110)
games submitted by our members
Games in WIP (548)
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  
  How to import class files when missing source file.  (Read 2674 times)
0 Members and 1 Guest are viewing this topic.
Offline zappsweden

Junior Member




Java games rock!


« Posted 2006-11-06 21:14:16 »

I have tried downloading some class files in EasyOgg to be able to use OGG sound files in my game. It works when I make it an application and the class files are positioned in the right folder from the executable.

BUT, when using Eclipse or JBuilder it will not compile it no matter how I import it. It will refuse because I do not have the source file so it will say those files are missing. How do I solve this since I do not have the source files?
Offline kevglass

JGO Kernel


Medals: 153
Projects: 23
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #1 - Posted 2006-11-06 23:31:18 »

Project Properties -> Java Build Path -> Libraries -> Add Class Folder

Normally you'd have your class files in a jar and add them like that.

Kev

Offline zappsweden

Junior Member




Java games rock!


« Reply #2 - Posted 2006-11-07 10:34:19 »

I tried
project properties -> paths -> class path

but everything was grayed out, no button to add or modify the paths. I also tried the required libraries tab and added my "OGG Support" library that i created from the 2 jar files needed but it made no difference.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline g666

Junior Member





« Reply #3 - Posted 2006-11-07 11:09:30 »

Try refreshing your project?

desperately seeking sanity
Offline zappsweden

Junior Member




Java games rock!


« Reply #4 - Posted 2006-11-07 11:49:16 »

Strange, now the 2 jar files sudeenly work, I do not know if it was the refresh because I made some steps in between and when it started working. Might have been the update project. THANKS!  Smiley
Offline woogley
« Reply #5 - Posted 2006-11-07 12:26:57 »

doesnt EasyOGG come with source code o_O
Offline zappsweden

Junior Member




Java games rock!


« Reply #6 - Posted 2006-11-07 12:29:02 »

doesnt EasyOGG come with source code o_O

EasyOgg comes with source code for creating and playing a clip, but the imports in the Clip.java file referres to stuff that just have .class files no source.
Offline woogley
« Reply #7 - Posted 2006-11-07 12:36:59 »

that stuff is JOrbis/JOGG. you can grab that here.. it's open source.
Offline zappsweden

Junior Member




Java games rock!


« Reply #8 - Posted 2006-11-07 12:40:48 »

Is there any point in not using jar files? When I make install files for the game, it works with both folder or jar, and the EasyOgg files is just like ~60kb anyway so I guess it makes no difference if I use it as jar or folder?
Offline woogley
« Reply #9 - Posted 2006-11-07 12:47:09 »

i used it as a folder for beetle mania, but that's only because i had made modifications to some of EasyOGG's code and I didnt feel like re-bundling it into its own jar Smiley
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.

atombrot (26 views)
2014-08-19 09:29:53

Tekkerue (24 views)
2014-08-16 06:45:27

Tekkerue (23 views)
2014-08-16 06:22:17

Tekkerue (14 views)
2014-08-16 06:20:21

Tekkerue (22 views)
2014-08-16 06:12:11

Rayexar (60 views)
2014-08-11 02:49:23

BurntPizza (39 views)
2014-08-09 21:09:32

BurntPizza (30 views)
2014-08-08 02:01:56

Norakomi (37 views)
2014-08-06 19:49:38

BurntPizza (67 views)
2014-08-03 02:57:17
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

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
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!