Announcement

Collapse
No announcement yet.

geting java programs too work/nvidia vidio card help

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    geting java programs too work/nvidia vidio card help

    The problem i am having is geting a java program working. It seems too think the *.jar files are compressed folders an opens them instead of running them like the executable files they are.

    I know this is probly a simpel fix but i cant seem to find out how to di it. any help would be much apperciated. I also have installed the java package.

    last question

    I have a gforce 6200 vidio card 256 mb now after hours of toying an trying to get kubuntu to install an it not wanting too i went too the websight here an found that there is a problem with instilation.

    So i removed it an put an old ati card in to installed the os wichworked fine.

    My question is can i now put the goforce vidio card in an start kubuntu an then update the drivers or will it just hang at start up screen like it did when i tride to install the os withthe vidio card.

    i have kubuntu 8.1 the dvd they send you if you ask as i dont have a dvd burner.

    #2
    Re: geting java programs too work/nvidia vidio card help

    Originally posted by cudayne
    The problem i am having is geting a java program working.
    It seems too think the *.jar files are compressed folders an opens them instead of running them like the executable files they are.
    jar files actually are archive files (java archive files).
    jar files are not executable files.
    so, unless instructed otherwise, your desktop will try to unpack them.
    this is usually done via ark, on kde.
    it is true that some jar files include stuff that you want to execute.
    and you can do that (eventually) with "java -jar ..."

    this said...

    if you installed the java stuff (the whole jdk or simply only the jre)
    you should be able to:
    right click on your jar file -> open with -> sun java ... runtime
    in my case it prompts 3 options:
    a) ark
    b) sun java 5.0 runtime
    c) sun java 6 runtime

    if you want your desktop to open the jar file via the java runtime env by default
    you can then:
    a) start konqueror
    b) settings -> configure konqueror -> file associations
    c) filter for "jar"
    d) change the priority order and move the java runtime to the top of the list

    Originally posted by cudayne
    last question

    I have a gforce 6200 vidio card 256 mb now after hours of toying an trying to get kubuntu to install an it not wanting too i went too the websight here an found that there is a problem with instilation.

    So i removed it an put an old ati card in to installed the os wichworked fine.

    My question is can i now put the goforce vidio card in an start kubuntu an then update the drivers or will it just hang at start up screen like it did when i tride to install the os withthe vidio card.

    i have kubuntu 8.1 the dvd they send you if you ask as i dont have a dvd burner.
    don't have a solution here.
    just a few things i know of.
    a) nvidia is in general better supported than ati
    b) nvidia drivers for 8.10 are not working all that well yet (mind you, for production i'm still on 7.10!)
    c) i remember there were issues with goforce cards drivers a long time ago
    d) try the open source "nv" driver for nvidia: no 3d accel but works most of the times


    hth
    gnu/linux is not windoze

    Comment


      #3
      Re: geting java programs too work/nvidia vidio card help

      I have a Gforce 6200 in my machine and it works perfectly with the nvidia-glx-177 driver in the repositories.

      Comment


        #4
        Re: geting java programs too work/nvidia vidio card help

        right click on your jar file -> open with -> sun java ... runtime

        when i do the first 2 steps it dont give me the open with >sun java option an i cant find it.

        I checked with the java web sight an yes it is installed.

        Comment


          #5
          Re: geting java programs too work/nvidia vidio card help

          i'll have to check if there's anything funny in 8.10 about this.
          meanwhile...
          i understand that you installed java off the official repositories.
          so, could you please start a konsole, run
          Code:
          update-java-alternatives --list
          and post the output back here...
          cheers
          gnu/linux is not windoze

          Comment


            #6
            Re: geting java programs too work/nvidia vidio card help

            Hi, i have the exact same problem with java associations, but the funny part is that the first time i installed the a program (jdownloader) it did give me the option to right-click and choose to run it as a java application, but as soon as i closed the program never again it was associated. i have read a lot but found nothing useful, just a bunch of people with the same problem...

            Here's what i did:
            - uninstalled all java related stuff
            - uninstalled Ark
            - sudo apt-get autoclean
            - reinstalled JRE alone

            but it still doesn't associate jar files, it only runs through the command java -jar filepath/file.jar

            anyway to get jar files running if i double-click? or right click and choose? (any option is good, i'll take it from there)

            here's the output i get from update-java-alternatives --list
            java-6-sun 63 /usr/lib/jvm/java-6-sun

            Comment


              #7
              Re: geting java programs too work/nvidia vidio card help

              alright.

              i checked on 8.10 and there actually is an issue.
              jar files are seen as zip files, no matter what.
              my konqueror is configured properly (jar file association, mime type, applications, etc...).
              but the problem is that, at lower level, the jar file is seen as a zip file.
              you can check this with:
              Code:
              file <jar filename>
              no big deal, though.
              if mohammad can't go to the mountain...

              we can trick the system by adding the java stuff to the zip file configuration.
              a) start konqueror
              b) hit settings -> configure -> file associations
              c) filter for zip
              d) to the plain zip under applications add the *.jar extension
              e) associate your "/usr/lib/jvm/java-6-sun/bin/java -jar" command
              f) do the cosmetic stuff if you like (change name to: Java 6 Runtime, ...)

              don't change the priorities.
              leave ark as default.
              otherwise all zip files will go through java -jar by default.
              not exactly what we want.

              i now have the choice to use "java -jar" via dolphin in 8.10, too.
              you should be able to do the same.

              one day you might see the jar icon popping up next to the jar file.
              that will likely mean that this workaround is obsolete.

              hth
              gnu/linux is not windoze

              Comment


                #8
                Re: geting java programs too work/nvidia vidio card help

                It worked for me... not exactly the best solution... but it's the best so far... thanks a lot

                Comment

                Working...
                X