Java-Gaming.org Hi !
Featured games (81)
games approved by the League of Dukes
Games in Showcase (513)
Games in Android Showcase (119)
games submitted by our members
Games in WIP (577)
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  
  JInput system-wide installation on linux  (Read 1405 times)
0 Members and 1 Guest are viewing this topic.
Offline TheBohemian

Junior Duke




Java will rule them all!


« Posted 2004-03-04 20:56:16 »

I am currently merging my favorite worlds Java and Gentoo Linux together but have the following problem while writing an ebuild (installation script) for JInput:
The problem is that I do not know where to put the jinput plugin files (linux.jar and libjinput.so) for a comfortable system-wide installation.

Please do not treat this as a gentoo specific problem. The question is only were to put these files in an environment were multiple JVMs are available and can be installed after jinput.

I know that the plugin files should live in "lib/ext/controller" but copying them to that location would be a bad idea when the JVM with "lib/ext/controller" gets replaced.
Or should I leave the plugin installation completely to the user and provide only the infrastructure by installing jinput.jar?

-----

If someone is interested on a discussion on the ebuilds itself have a look at this: http://forums.gentoo.org/viewtopic.php?t=145027

cya

TheBohemian

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

JGO Coder




Got any cats?


« Reply #1 - Posted 2004-03-05 07:20:09 »

Hmm.

Didnt we hack in the ability to set the plug in directory to an arbitrary location with a property?

That would mean that you would have to set the property in your Java install's system properties every time you re-installed it OR would have to set it with -D on the command line of every program that used it.

Not ideal but I can't think of another solution thats any better.

Anyone?

JK

Got a question about Java and game programming?  Just new to the Java Game Development Community?  Try my FAQ.  Its likely you'll learn something!

http://wiki.java.net/bin/view/Games/JeffFAQ
Offline swpalmer

JGO Coder


Exp: 12 years


Where's the Kaboom?


« Reply #2 - Posted 2004-03-05 11:40:36 »

Quote
I know that the plugin files should live in "lib/ext/controller" but copying them to that location would be a bad idea when the JVM with "lib/ext/controller" gets replaced.


Any 'standard extension' has the same issue.

JInput is small - it is probably best not to go with a system-wide installation.  It can screw up other games that may need a newer build because the system-wide one will load instead.

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Jeff

JGO Coder




Got any cats?


« Reply #3 - Posted 2004-03-06 03:21:15 »

We might want to reverse that precedence.

Opinions?

Got a question about Java and game programming?  Just new to the Java Game Development Community?  Try my FAQ.  Its likely you'll learn something!

http://wiki.java.net/bin/view/Games/JeffFAQ
Offline endolf

JGO Coder


Medals: 7
Exp: 15 years


Current project release date: sometime in 3003


« Reply #4 - Posted 2004-03-08 08:36:48 »

Hi
 As with all installed plugins you have problems if you install an older version over the top of a newer one. If you are using one installed with the application and have one installed into the vm then doesn't the jvm location get searched last? (not tried it, and at work not home to test it right now)

Cheers

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.

Longarmx (49 views)
2014-10-17 03:59:02

Norakomi (38 views)
2014-10-16 15:22:06

Norakomi (31 views)
2014-10-16 15:20:20

lcass (34 views)
2014-10-15 16:18:58

TehJavaDev (65 views)
2014-10-14 00:39:48

TehJavaDev (65 views)
2014-10-14 00:35:47

TehJavaDev (54 views)
2014-10-14 00:32:37

BurntPizza (72 views)
2014-10-11 23:24:42

BurntPizza (43 views)
2014-10-11 23:10:45

BurntPizza (84 views)
2014-10-11 22:30:10
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

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