I managed to download files for a java game called “Robobmbo”. But I have run into some problems. Most of the classes have imported other classes like java.net.URLConnection. But I have no idea where to find these files. Can anyone tell me where I can download: java.net.*, java.io.*, etcetera. ?
The example below is from the MusicPlayer.class. Its supposed to play a module music track in the game. I am having a hard time finding this module. I believe the link to the module is in URLConnection or URL. How do I open the URLConnection class file?
package game;
import java.io.BufferedInputStream;
import java.net.URL;
import java.net.URLConnection;
import java.util.Hashtable;
import java.util.zip.ZipInputStream;
import litecom.Trace;
import litecom.modplayer.Mod;
import litecom.modplayer.ModPlayer;
I downloaded Eclipse, opened it, then tried opening the class file but it failed. I searched the internet and found that you should go to preference > general editor and Class File Editor as the default. But there is no class editor in the list :(. What do I do?
The io,util etc packages are part of the core Java API and should be with your JRE.
Please can you paste in the error you are getting.
— Since your update —
The URL class is part of the Java API – i.e. when you install Java you will see it.
Try installing Java + Eclipse, then open this file in Eclipse, right click on the classes that you can’t find and then select “Definition” and it will show you where they come from.
However – being kind – this is a terrible question, you have downloaded Java code and don’t understand the very basics of how to compile or edit it.