Questions tagged [jar]

The JAR or Java archive file format allows you to bundle multiple files into a single archive file similar to a zip file.

Filter by
Sorted by
Tagged with
0 votes
0 answers
27 views

Why certain commands require a space when using source in a bash script [duplicate]

properties.ini PROFILES="--spring.profiles.active=local" PROPERTIES="--spring.config.import=file:./properties/" script.sh #!/bin/bash # Read the INI file and set its values as ...
남혁준's user avatar
0 votes
1 answer
277 views

Unable to access jarfile in a tmux session from startup

I have a script which starts a new tmux session and runs the Minecraft launch command like so: #!/bin/bash # Create a new session and run a command inside the session tmux new-session -d -s mc tmux ...
Jezza's user avatar
  • 21
-1 votes
1 answer
575 views

Cannot install forge

I am used to using Windows and being able to just install .jar files. I tried installing forge by following the instructions in a video I found and I typed java -jar forge-1.19.2-43.2.0-installer.jar ...
daniel slater's user avatar
0 votes
0 answers
179 views

error install java 16 ubuntu

hi i am trying to install java 16 on ubuntu 18 with the following commands sudo add-apt-repository ppa:linuxuprising/java sudo apt update sudo apt install oracle-java16-installer and receive the next ...
ismael perez's user avatar
0 votes
1 answer
2k views

How to configure .desktop file to run .jar file exactly as if run from terminal

I have a java program that works correctly when I run java -jar "lizzie.jar" from the terminal, but when I double click it in Nautilus it runs (i.e. UI shows) but returns the error "No ...
Christopher.L's user avatar
0 votes
2 answers
1k views

CLI: How to browse contents in a jar file? [duplicate]

Inside a Ubuntu OS, how can I browse contents in a jar file by terminal?
Feng Lei's user avatar
1 vote
1 answer
510 views

How to convert .jar file to .exe file? [closed]

I'm creating a Java program, and I need to test it on Windows. I know how to convert a .jar file to a .exe file on Windows, but the only Windows computer I know of is not mine. My friend will let me ...
Dequog's user avatar
  • 55
1 vote
0 answers
90 views

Measuring the running time and query answering time of GUI Jar file in Linux

I have a GUI jar file (taken from here). I need to measure the shell time of loading a file in this jar and then query-answering time of this jar. The problem is the code is not provided with this jar....
Qureshi's user avatar
  • 11
0 votes
0 answers
923 views

How to set name for java -jar process and store pid to file

I would like to set name for process which triggers java -jar command. For example this command: java -jar selenium-server-standalone-3.141.59.jar -role hub I would like to set this process name and ...
Čamo's user avatar
  • 729
-1 votes
1 answer
2k views

How to run two java programs from bash.sh file

I need to make bash file which should run something like this: cd /opt/selenium-server/ java -jar selenium-server-standalone-3.141.59.jar -role hub java -jar selenium-server-standalone-3.141.59.jar -...
Čamo's user avatar
  • 729
0 votes
0 answers
129 views

How to solve java jar file exception ( version `CURL_OPENSSL_4' not found (required by libvlog-core.so) )?

I am running a java jar file on my server (ubuntu) I got this error: Exception in thread "main" java.lang.UnsatisfiedLinkError: while loading vlog-core: /tmp/VLog-tmp/libvlog-core.so: /usr/...
aga.91's user avatar
  • 1
1 vote
1 answer
350 views

Please help with this specific fatal error upon trying to run a third party .jar file

I would like to run the open source program Zettelkasten; it would be great for my work and I hope very much you can help me to get it running!! Thanks in advance!!! The program is this: http://...
Danny27's user avatar
  • 63
0 votes
2 answers
2k views

Finding JAVAX.Mail Jar

I have been using eclipse to code and test my software on Windows. When I copy the code to Ubuntu, I cannot compile the code as it cannot find the Javax files to import. I know I need to add the ...
TallGuy's user avatar
1 vote
1 answer
966 views

launch4j error at launch, installation impossible Ubuntu 18.04

I am new to ubuntu software installation "by hand". I want to install launch4j. I have followed the guide from StackExchange and other websites online. Whatever I try, with or without sudo, using ...
Onyr's user avatar
  • 153
0 votes
1 answer
905 views

cd ~/root doesn't work, is there way to enable it? [closed]

Is there a command where you can access root from the linux terminal? (/cd ~root) I have had to change my minecraft saves files under root, and had to run the command: cd ~/Downloads sudo java -jar ...
Earl's user avatar
  • 1
1 vote
0 answers
273 views

How do I remove duplicate icon from Ubuntu dock?

After using jar xvf <filename> command to unzip a file I suddenly got a second duplicate of the Files icon on my dock as you can see on the picture: Clicking the "duplicate" icon at the ...
Orkhan S.'s user avatar
0 votes
1 answer
690 views

Java problem - java, Jar file Statmetrics is not running

Download link: https://upload.cat/f694139f88c663b1 I am trying to run Java file either as jar or as classes in Ubuntu. I failed in both options. The following exception is its output. java org....
Estatistics's user avatar
0 votes
1 answer
4k views

Java package does not exist (package org.bouncycastle.cms)

I have install java jar packing by using this command java verison (1.8) CLASSPATH=.:/path/to/bcmail-jdk16-144.jar:/path/to/bcprov-jdk16-144.jar:$CLASSPATH export CLASSPATH which is required as ...
rahul.m's user avatar
  • 125
1 vote
0 answers
5k views

Unable to execute jar file on Linux subsystem in Windows

I'm attempting run a jar file, but am running into the "Unable to access jar file" error. When I run it from the Windows path (I hope the term is right, am new to this), it runs fine: java -jar /mnt/...
user3377812's user avatar
0 votes
1 answer
3k views

I received an error fetching bootstrap, SSLHandshakeException : handshake_failure running runelite on lubuntu

I received the following error whilst trying to launch a RuneLite jar on a freshly installed Lubuntu(18.10 64bit): [main] ERROR net.runelite.launcher.Launcher -error fetching bootstrap javax.net.ssl....
Bullseye's user avatar
1 vote
5 answers
2k views

MediathekView does not start in Kubuntu 18.10 (cosmic)

In Kubuntu 18.10 (cosmic) the application MediathekView crashes with the following error message: java.lang.NoClassDefFoundError: com/jidesoft/utils/ThreadCheckingRepaintManager Remark: the message ...
Stéphane Tréboux's user avatar
1 vote
2 answers
1k views

Why wont JRE run my .Jar file [duplicate]

Before you mark this as the same thing as the others, You need to know I have done this before hundreds of times with no problem, I just reinstalled Ubuntu 18.04 2 days ago, and I was trying something ...
Jeffrey Kratka's user avatar
0 votes
1 answer
4k views

How do I make a Java JAR file executable in Linux Mint? [duplicate]

This is the notice I get: The file '/home/heart/Phantombot/PhantomBot-2.4.1/PhantomBot.jar' is not marked as executable. If this was downloaded or copied from an untrusted source, it may be ...
watercollider's user avatar
0 votes
0 answers
4k views

Ubuntu 16, Java -jar: Could not find or load main class pattypan.Main

Just spend hours searching and I found a lot of questions related to this, but this is more simple. All the other questions I found are developers asking what to do when they get this error. "Error: ...
LoJoe's user avatar
  • 101
0 votes
0 answers
1k views

Running jar as a service problem

after a few days of pondering around google I give up. Running Tika-Server with command line works fine and Tika-Server starts responding on http://localhost:9998: java -jar tika-server-2.0.0-...
SubjectX's user avatar
  • 133
0 votes
0 answers
44 views

Ubuntu 16.04 Running a jar does not take vpn IP

I am trying to run a jar on my ubuntu system and I am on vpn, instead of taking the host as my IP on VPN, it takes the localhost IP, ie. 127.0.0.1. It is a kind of listener and I need to run the jar ...
OutOfMind's user avatar
  • 101
0 votes
0 answers
249 views

use tor to run jar file in Ubuntu terminal

how to run jar file using tor or torsocks or torify in Ubuntu terminal ? I tried this but it doesn't work : nohup torsocks java -jar tortest.jar & also this one doesn't work : nohup torify ...
sadim ahman's user avatar
0 votes
1 answer
926 views

Unable to execute .jar file from terminal despite having Java installed [duplicate]

I've installed the latest release of JDK with NetBeans on Ubuntu. When I attempt to execute a .jar file from the terminal with java -jar Minecraft.jar, this is outputted: The program 'java' cannot be ...
McGrizz's user avatar
0 votes
2 answers
238 views

Can No longer Right-Click and Run MC.Jar (Minecraft) with Ubuntu 17.10

Double-Click just opens it as a archive. So what is the solution to run a Jar file under Ubuntu 17.10. If I right-click and select find application, Java 8 does not show up? &>java -version ...
EODCraft Staff's user avatar
0 votes
1 answer
2k views

Require help installing a .jar file. (14.04)

I need help installing a .jar file, http://chunky.llbit.se/download.html, which is causing problems for me. I have Openjdk 7 and 6 and I got 8 from another, non official place. When I double click the ...
Random Human's user avatar
0 votes
1 answer
893 views

Making "java -jar OSBuddy.jar" an icon I can execute on my desktop? [duplicate]

Title says it all. I'm really really new with Linux stuff. Using Xfce/Crouton/Ubuntu etc. If you can be as specific as possible, or linking me to a guide that breaks everything down step by step that ...
Cassidy's user avatar
  • 21
0 votes
1 answer
1k views

How do I open Minecraft.jar in Ubuntu? [duplicate]

Please do not mark as duplicate because I have been searching so long on other posts but they don't work for me. Please give me a step by step tutorial as an answer and be VERY SPECIFIC. I am not a ...
Alicia Rukaru's user avatar
0 votes
0 answers
74 views

uploading a jar file to software center

i am new here.. i am a Java programmer how can i upload a .jar file to ubuntu software center? i created an account in ubuntu Apps and i building a .deb from my .jar file but i do not know yet how to ...
Anti Atlas Dev's user avatar
1 vote
1 answer
57 views

Cannot understand notation

I'm trying to run a Jar file on ubuntu 14.04. I've already installed OpenJDK Java 6 and 7 Runtime and turned the jar file to be executable. I double click on the file but nothing seems to happen! I ...
MakisL's user avatar
  • 11
1 vote
1 answer
2k views

Jar file failing to execute

I have a jar file located at /home/username/Documents/program.jar and when I open the terminal and type java -jar ~/Documents/program.jar I get the following readout: Exception in thread "main" java....
cheesits456's user avatar
  • 1,282
1 vote
0 answers
9k views

JAR Issue: Could not find or load main class

I have a Java software that run perfectly in Windows. The folder structure is: -dist - lib - PowerHarvestingConfFx.jar But when I try to open in Ubuntu I get this error: cd dist java -jar ./...
FabioDev's user avatar
  • 535
0 votes
1 answer
190 views

Howto autostart a java -jar file after MySQL (mariadb) has started in Xubuntu 16.04?

I used to run this script in Startup and Session in Xubuntu 14.04 to autostart my java app: xfce4-terminal -e "bash -c \"cd /home/restaurant/Documents/dist/ && java -jar POSv2.jar; exec bash\...
Chiggiddi's user avatar
  • 345
3 votes
1 answer
11k views

How to run a .jar with admin privileges?

I am attempting to open a .jar file with java 8 but it gives me an error message asking for admin privileges: Please start the Authenticator with admin privileges I am completely new to this type of ...
Lokii's user avatar
  • 31
1 vote
1 answer
1k views

Run .jars Without java -jar Invocation [duplicate]

I often run Java .jar files, but in order to do so, I must invoke it with the command java -jar myJar.jar. Simply making the .jar executable will not allow it to be run, since it is not fully ...
theJack's user avatar
  • 131
0 votes
0 answers
271 views

Running executable jar file from terminal [duplicate]

I've just got a new PC running Ubuntu 16.04 and have transferred my work from my laptop running Ubuntu 14.04. I have an executable jar file called timed_hri.jar. On my laptop I can go to the ...
oodles2do's user avatar
  • 1,803
1 vote
2 answers
3k views

Running a .jar file with jdk 1.8.0

I installed JDK 1.8.0 from Oracle, and everything works perfectly. I can create, compile and run java files. But I just downloaded a .jar file and tried running it using java -jar path/name.jar and it ...
Python and Android for life's user avatar
0 votes
1 answer
677 views

My .jar file run with terminal but not by "clicking"' on it [duplicate]

I made a little program in Java, and it run perfectly when I use the java -jar myFile.jar but when I use the "open with OpenJDK Java 7 Runtime" option, nothing happen. I have no idea why it doesn't ...
Cariamole's user avatar
1 vote
1 answer
236 views

How do I run a jar so that I can access it on another terminal session later?

I know the answer to this question may be screens, but it doesn't seem to be working for me. I've tried creating a new screen session and running it there, then switching back to my main one. However, ...
Jesse Wells's user avatar
1 vote
2 answers
272 views

How to doubleclick a Java Jar and start it without sudo

My current Situation: my pc is running Xubuntu 16.04 a java jar app on Xubunutu desktop a USB thermal printer (Model: DigiPOS 920) is connected via USB to my pc the java app talks to the thermal ...
Chiggiddi's user avatar
  • 345
1 vote
1 answer
2k views

Unable to run .jar file using .desktop file, even though it runs from terminal

I'm running 32-bit Ubuntu 12.04 (on a 64-bit machine - don't ask). I have Oracle Java 8 installed as the default java version (confirmed using both 'java -version' and 'update -alternatives'), but ...
Jeremy Amos's user avatar
2 votes
2 answers
694 views

Running *.jar files with Java 7 Runtime [duplicate]

When I run the *.jar file my Ubuntu pops up an error message with The file /... is not marked as executable. If this was downloaded or copied from an untrusted source, it may be dangerous to run. ...
RegarBoy's user avatar
  • 121
1 vote
1 answer
9k views

How to install sbt in its latest version in Ubuntu 14.04?

I am facing this Spark problem, after installing sbt like this. How to proceed please? When hitting tab to this: sudo apt-get install s I do not see any sbt package.
gsamaras's user avatar
  • 605
0 votes
1 answer
2k views

OpenJDK not running .jar files

I've downloaded the .jar file for Minecraft, and I installed OpenJDK 6 from the software center, and I tried with 7 as well, but it keeps throwing the message "The file '/home/hunter/Downloads/...
Hunter Peters's user avatar
110 votes
7 answers
116k views

Assistive technology not found AWTError

$ java -jar aprof-plot.jar Exception in thread "main" java.awt.AWTError: Assistive Technology not found: org.GNOME.Accessibility.AtkWrapper at java.awt.Toolkit.loadAssistiveTechnologies(Toolkit....
Shiwangi Singh's user avatar
2 votes
1 answer
5k views

How to make an executable text file run a .jar file with arguments

I need to make a simple executable text file (preferably via chmod +x, but that isn't necessary) that runs a .jar file and passes in JVM arguments as well as jar-specific args. It must also run in ...
Hunter Robertson's user avatar