Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (489)
Games in Android Showcase (112)
games submitted by our members
Games in WIP (553)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1]
1  Java Game APIs & Engines / JInput / Re: Compilation errors on: 2007-02-12 22:11:44
Dear endolf,

I got it... thanks for everything.  Cheesy

See you later....
2  Java Game APIs & Engines / JInput / Re: Compilation errors on: 2007-02-12 08:09:29
Dear endolf,

Thank you for your advice, you are my savior.  Grin
It is working fine now.

about the warnings I mentioned. Could you be more specific on which line of source code is for java 1.4. and if you don't mind, could you provide me with the solution in order to solve the warnings.

Thank you.
3  Java Game APIs & Engines / JInput / Re: Compilation errors on: 2007-02-12 03:07:49
Dear endolf,

thanks for your advice, it helps.

when I compile the exact same code as the source code of ControllerReadTest (from: https://jinput.dev.java.net/source/browse/jinput/coreAPI/src/java/net/java/games/input/test/ControllerReadTest.java) with:
1  
$ javac -Xlint:unchecked -classpath jinput.jar ControllerReadTest.java
, I got these warning messages:
1  
2  
3  
4  
5  
6  
7  
ControllerReadTest.java:182: warning: [unchecked] unchecked call to add(E) as a member of the raw type java.util.List
            axisList.add(p2);
                        ^
ControllerReadTest.java:255: warning: [unchecked] unchecked call to add(E) as a member of the raw type java.util.List
        controllers.add(new ControllerWindow(this, c));
                       ^
2 warnings

although this is only warning messages, I want to know the meaning of these warning. Please tell me the meaning of these?

when I ran the program with:
1  
$ java -cp jinput.jar ControllerReadTest
, I got the following error messages:
1  
2  
3  
4  
5  
6  
7  
8  
Exception in thread "main" java.lang.NoClassDefFoundError: ControllerReadTest
   at gnu.java.lang.MainThread.run(libgcj.so.7rh)
Caused by: java.lang.ClassNotFoundException: ControllerReadTest not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:jinput.jar], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
   at java.net.URLClassLoader.findClass(libgcj.so.7rh)
   at gnu.gcj.runtime.SystemClassLoader.findClass(libgcj.so.7rh)
   at java.lang.ClassLoader.loadClass(libgcj.so.7rh)
   at java.lang.ClassLoader.loadClass(libgcj.so.7rh)
   at gnu.java.lang.MainThread.run(libgcj.so.7rh)

as I look at the source code of ControllerReadTest.java, I can see the main method at the last part of the code. Please explain me how to properly compile and run the ControllerReadTest code?

Thank you.
4  Java Game APIs & Engines / JInput / Compilation errors on: 2007-02-10 17:01:30
Hi...

I am rewriting and recompiling the "ControllerReadTest.java" to learn the jinput programming. but I encounter these error and I don't know how to fix it.

My OS is "Linux-Fedora Core 6" and "jinput.jar" is from jinput_combined_dist_20061029.zip.

the command I use to compile:
$ javac -classpath jinput.jar ControllerReadTest.java

the error I get:
ControllerReadTest.java:153: cannot find symbol
symbol  : variable disabled
location: class ControllerReadTest.ControllerWindow
            return disabled;
                   ^
ControllerReadTest.java:157: cannot find symbol
symbol  : variable disabled
location: class ControllerReadTest.ControllerWindow
            disabled = b;
            ^
ControllerReadTest.java:158: cannot find symbol
symbol  : variable disabled
location: class ControllerReadTest.ControllerWindow
            if(!disabled) {
                ^
Note: ControllerReadTest.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
3 errors

the source code:
....
   public boolean disabled() {
       return disabled; // >>error: line 153<<
   }

   private void setDisabled(boolean b) {
       disabled = b; // >>error: line 157<<
       if(!disabled) { // >>error: line 158<<
      this.setTitle(ca.getName());
      System.out.println(ca.getName()+" enabled");
       } else {
....

does anyone know how to fix this?
Thank you...
5  Java Game APIs & Engines / JInput / Re: Rumble Problems on: 2007-02-09 13:22:12
Hi...

OS is Linux (Fedora Core 6).

I dont know what version my jinput is (please tell me how to check the jinput version). but I download it from "document & files" section on <https://jinput.dev.java.net/>. The file name is <jinput_combined_dist_20061029.zip>, inside "combined" folder.

thanks
6  Java Game APIs & Engines / JInput / Re: Rumble Problems on: 2007-02-08 02:56:14
Hi...

I'm using Playstation2 analog-controller (SCPH-10010) as my game-controller. from the output of ControllerReadText test-program I can tell that all the button and analog sticks are working. But I can't get it rumbles with the RumbleTest test-program.

I need the rumble function for my implementation, should I change the game-controller or is there anything I can do to make it works?

Thank you...
7  Java Game APIs & Engines / JInput / Re: JInput introduction on: 2007-02-06 09:11:39
Hi

I am running it on Linux (fedora core) indeed.
Thanks for the info. But it took 2 hours for me to notice between ";" and ":"   Tongue

Btw, where can I get the source code of the test program?

Thanks.
8  Java Game APIs & Engines / JInput / Re: JInput introduction on: 2007-02-06 02:13:30
Hi

I was trying to do as instructed in this thread, but while running the command:

java -cp jinput-tests-20060514.jar;jinput.jar -Djava.library.path=. net.java.games.input.test.ControllerTextTest

but it didn't worked. but if I change the ";" with ":" it seems to work. can anyone tell me, why?

thanks.
Pages: [1]
 

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

The first screenshot will be displayed as a thumbnail.

TehJavaDev (18 views)
2014-08-28 18:26:30

CopyableCougar4 (26 views)
2014-08-22 19:31:30

atombrot (39 views)
2014-08-19 09:29:53

Tekkerue (36 views)
2014-08-16 06:45:27

Tekkerue (33 views)
2014-08-16 06:22:17

Tekkerue (22 views)
2014-08-16 06:20:21

Tekkerue (33 views)
2014-08-16 06:12:11

Rayexar (70 views)
2014-08-11 02:49:23

BurntPizza (47 views)
2014-08-09 21:09:32

BurntPizza (38 views)
2014-08-08 02:01:56
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!