Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (582)
Games in Android Showcase (163)
games submitted by our members
Games in WIP (632)
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 2963 times)
0 Members and 1 Guest are viewing this topic.
Offline zappsweden

Junior Devvie

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 Spiffy Duke »

Medals: 269
Projects: 25
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.


Offline zappsweden

Junior Devvie

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 Devvie

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

Try refreshing your project?

desperately seeking sanity
Offline zappsweden

Junior Devvie

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 Devvie

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 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 Devvie

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.

theagentd (25 views)
2015-05-27 22:21:17

theagentd (33 views)
2015-05-27 22:21:08

CopyableCougar4 (22 views)
2015-05-27 19:24:50

MrMapcom (24 views)
2015-05-23 20:26:16

MrMapcom (32 views)
2015-05-23 20:23:34

Waterwolf (37 views)
2015-05-20 15:01:45

chrislo27 (44 views)
2015-05-20 03:42:21

BurntPizza (79 views)
2015-05-10 15:53:18

FrozenShade (64 views)
2015-05-07 09:11:21

TheLopais (227 views)
2015-05-06 13:36:48
List of Learning Resources
by SilverTiger
2015-05-05 10:20:32

How to: JGO Wiki
by Mac70
2015-02-17 20:56:16

2D Dynamic Lighting
by ThePixelPony
2015-01-01 20:25:42

How do I start Java Game Development?
by gouessej
2014-12-27 19:41:21

Resources for WIP games
by kpars
2014-12-18 10:26:14

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 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‑
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!