hi im looking to make a toolkit in java for a game but i dont know how to show the game screen in the .jar file
the game itself is a jar file and i was wondering how do i inject that into my .jar file so it shows in a gui window?
Welcome to the Java Programming Forums
The professional, friendly Java community. 21,500 members and growing!
The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.
>> REGISTER NOW TO START POSTING
Members have full access to the forums. Advertisements are removed for registered users.
hi im looking to make a toolkit in java for a game but i dont know how to show the game screen in the .jar file
the game itself is a jar file and i was wondering how do i inject that into my .jar file so it shows in a gui window?
I'm not sure what you are asking. A jar file can contain class files that the jvm can read and use. The jar file needs to be on the classpath for the jvm to find the class files. There are custom classloaders that can read class files from other locations like inside a jar file.how to show the game screen in the .jar file
If the other jar file is on the classpath, your classes can use the classes it contains.how do i inject that into my .jar file
If you don't understand my answer, don't ignore it, ask a question.