Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (494)
Games in Android Showcase (114)
games submitted by our members
Games in WIP (563)
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  
  ARGH! what am i doing wrong?  (Read 2918 times)
0 Members and 1 Guest are viewing this topic.
Offline JuddMan

Senior Member


Medals: 1


Your Ad Here


« Posted 2003-09-22 07:29:24 »

this question might belong in newless cluebies, but here goes...

i downloaded the jinput release for directinput from
http://www.newdawnsoftware.com/resources/

and extracted it to a folder on the desktop.

downloaded the jinputtester jar and put it in the same folder as the above, ran it, and get the following exception:

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
 Directory of C:\Documents and Settings\Judd\Desktop\jinput_directx_dist

22/09/2003  06:37 PM    <DIR>          .
22/09/2003  06:37 PM    <DIR>          ..
22/09/2003  06:28 PM    <DIR>          controller
05/08/2003  06:05 PM            37,633 jinput.jar
22/09/2003  05:16 PM            23,295 jinputtester.jar
22/09/2003  06:36 PM             8,381 jutils.jar
               3 File(s)         69,309 bytes
               3 Dir(s)   5,383,664,128 bytes free

C:\Documents and Settings\Judd\Desktop\jinput_directx_dist>java -jar jinputtester.jar
Exception in thread "main" java.lang.NoClassDefFoundError: net/java/games/util/plugins/Plugins
        at net.java.games.input.ControllerEnvironment.<clinit>(ControllerEnvironment.java:73)
        at robs.jinput.JInputTester.<init>(JInputTester.java:22)
        at robs.jinput.JInputTester.main(JInputTester.java:29)

is this due to JInput changing since the tester was created or is there something special i am supposed to be doing with JInput binaries to get it to work?
Offline Herkules

Senior Member




Friendly fire isn't friendly!


« Reply #1 - Posted 2003-09-22 07:33:54 »

jinput isn't standalone. You additionally need the core package.

HARDCODE    --     DRTS/FlyingGuns/JPilot/JXInput  --    skype me: joerg.plewe
Offline JuddMan

Senior Member


Medals: 1


Your Ad Here


« Reply #2 - Posted 2003-09-22 07:53:33 »

where do i find that?
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline JuddMan

Senior Member


Medals: 1


Your Ad Here


« Reply #3 - Posted 2003-09-22 10:31:38 »

there is not enough documentation for people like me who dont know where to look to get started.

does anyone have a link or some info on how JInput works?
Offline swpalmer

JGO Coder




Where's the Kaboom?


« Reply #4 - Posted 2003-09-22 11:38:20 »

JuddMan contacted me on ICQ and we figured it out...

You can't run jinputtester.jar with  -jar, it messes up the classpath that way.

java -cp .;jinput.jar;jutils.jar;jinputtester.jar robs.jinput.JInputTester

did the trick.

Offline blahblahblahh

JGO Coder


Medals: 1


http://t-machine.org


« Reply #5 - Posted 2003-09-22 13:39:56 »

Quote
JuddMan contacted me on ICQ and we figured it out...

You can't run jinputtester.jar with  -jar, it messes up the classpath that way.

java -cp .;jinput.jar;jutils.jar;jinputtester.jar robs.jinput.JInputTester

did the trick.


...is this just a case of needing to modify the jinputtester.jar manifest to explicitly load the other JAR files?

I remember I had some serious pain with JAR's not being accesibel to each other EVEN THOUGH they were on the classpath, until I found about this Sad.

malloc will be first against the wall when the revolution comes...
Offline swpalmer

JGO Coder




Where's the Kaboom?


« Reply #6 - Posted 2003-09-22 15:35:49 »

Could be, but I don't know if that is the right solution either.  for instance, I have installed jinput.jar and jutils.jar as Extensions in my JRE, so it is they always available.
I had assumed that it would be installed as some sort of shared component for many games to access, rather than one at a timing it for each individual game.  But of course either way will work.

If jinputtester.jar were set up with WebStart and the JInput stuff was installed via an extension installer I think everything would work out.  They really need to get that server glitch worked out at java.net so the latest releases of the core projects can be properly hosted as Web Start extension installers, without them re-downloading every time.

I haven't looked at the manifest yet.

Offline TheBohemian

Junior Member




Java will rule them all!


« Reply #7 - Posted 2003-09-22 19:56:38 »

@JuddMan:
The problem with my app is the following. I assumed to have Jinput and every needed plugin already installed as an extension (jre/lib/ext for jinput.jar and jutils.jar and the 'controller' directory under jre/lib). If you do that everything would work fine.

I would change this behaviour but currently there is no documentation about where to put the plugin when jinput should not be installed as an extension.

Update!
I tested this while writing this post: jinput.jar jutils.jar and the controller dir with the appropiate files inside may live in the same directory as jinputtester.jar. The manifest's class-path is to be changed to "jutil.jar jinput.jar" and everything works fine. That means: java -jar jinputtester.jar works ...

I will update the binaries on the server to reflect that change. (Done!)

I also have included a small check that displays some useful suggestions when jinput is not available instead of spitting exception data.



cya

TheBohemian

---------------------------------------
my favorite OS: http://jnode.sf.net
Java 1.5 -> 1.4 converter: http://retroweaver.sf.net
Offline JuddMan

Senior Member


Medals: 1


Your Ad Here


« Reply #8 - Posted 2003-09-23 14:44:43 »

ok.

jinputtester is a good program, it'll come in very useful. im starting a small project with jinput though it has no name yet.
Offline endolf

JGO Coder


Medals: 7


Current project release date: sometime in 3003


« Reply #9 - Posted 2003-09-24 18:01:15 »

Just a quick note at any newbie reading this thread. The jinput on newdawnsoftware.com is quite old binary. Nightly builds should be available at https://games-binaries.dev.java.net/ .

HTH

Endolf

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.

Dwinin (21 views)
2014-09-12 09:08:26

Norakomi (55 views)
2014-09-10 13:57:51

TehJavaDev (66 views)
2014-09-10 06:39:09

Tekkerue (33 views)
2014-09-09 02:24:56

mitcheeb (54 views)
2014-09-08 06:06:29

BurntPizza (38 views)
2014-09-07 01:13:42

Longarmx (24 views)
2014-09-07 01:12:14

Longarmx (30 views)
2014-09-07 01:11:22

Longarmx (28 views)
2014-09-07 01:10:19

mitcheeb (37 views)
2014-09-04 23:08:59
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!