Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (406)
games submitted by our members
Games in WIP (293)
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 2332 times)
0 Members and 1 Guest are viewing this topic.
Offline zappsweden

Junior Member




Java games rock!


« Posted 2006-11-06 22: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
« League of Dukes »

JGO Kernel


Medals: 54
Projects: 20


Mentally unstable, best avoided.


« Reply #1 - Posted 2006-11-07 00: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 11: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!
Try the Free Demo of Titan Attacks
Offline g666

Junior Member





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

Try refreshing your project?

desperately seeking sanity
Offline zappsweden

Junior Member




Java games rock!


« Reply #4 - Posted 2006-11-07 12: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 13:26:57 »

doesnt EasyOGG come with source code o_O
Offline zappsweden

Junior Member




Java games rock!


« Reply #6 - Posted 2006-11-07 13: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 13: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 13: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 13: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.

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Get high quality music tracks for your game!

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

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (78 views)
2013-05-17 21:29:12

alaslipknot (89 views)
2013-05-16 21:24:48

gouessej (122 views)
2013-05-16 00:53:38

gouessej (113 views)
2013-05-16 00:17:58

theagentd (126 views)
2013-05-15 15:01:13

theagentd (113 views)
2013-05-15 15:00:54

StreetDoggy (157 views)
2013-05-14 15:56:26

kutucuk (180 views)
2013-05-12 17:10:36

kutucuk (179 views)
2013-05-12 15:36:09

UnluckyDevil (186 views)
2013-05-12 05:09:57
Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
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!
Page created in 0.083 seconds with 21 queries.