Find Jobs
Hire Freelancers

How can Netbeans run my application when some of my application's dependencies are not in the “Libraries” folder?

$10-30 CAD

Закрито
Опублікований over 6 years ago

$10-30 CAD

Оплачується при отриманні
I have an application what works properly when I run it from Netbeans, but doesn't work properly when I run it from the executable jar produced by the Netbeans "Clean and Build" command. In particular, I'm getting "[login to view URL]" for classes that aren't the "Libraries" folder of my project (for example, [login to view URL], as well as various other classes in [login to view URL]). I know that ClassNotFoundException is thrown when the given class isn't in the classpath of the application. I had started to manually add all of the various dependencies to the "[Project-Name]\dist\lib" folder created by Netbeans, but I feel like this is not the right way to go about doing this. This doesn't work for all dependencies, with ClassNotFoundExceptions being thrown even if a jar with the relevant class is in "[Project-Name]\dist\lib". I have no problem getting stuff listed in the "Libraries" folder into "[Project-Name]\dist\lib" folder. I have noticed that the dependencies that are not listed in the "Libraries" folder are various Java EE components. Since this program is an application client that connects to a Java EE server, and this is my first Java EE project, my guess is that there is something basic about Java EE that I don't understand that has led to this issue. I have two questions: 1. How can Netbeans run my application when some of my application's dependencies are not in the "Libraries" folder? 2. Is there any way of automatically exporting all of the dependencies not explicitly listed in the "Libraries" folder to "[Project-Name]\dist\lib"? Also, my project is not a Maven project.
ID проекту: 15913556

Про проект

11 пропозицій(-ї)
Дистанційний проект
Активність 6 yrs ago

Хочете заробити?

Переваги подання заявок на Freelancer

Вкажіть свій бюджет та терміни
Отримайте гроші за свою роботу
Опишіть свою пропозицію
Реєстрація та подання заявок у проекти є безкоштовними
11 фрілансерів(-и) готові виконати цю роботу у середньому за $44 CAD
Аватарка користувача
I have 8 years experience in java application development. I will fix this. Please message me for further discussion.
$35 CAD за 1 день
4,9 (84 відгуки(-ів))
5,4
5,4
Аватарка користувача
I have been developing java application using NetBeans ever since I started as a programming (8yrs now) and well versed in its usage.
$55 CAD за 1 день
5,0 (37 відгуки(-ів))
5,5
5,5
Аватарка користувача
I have 6K reputation in stackoverflow. I have been programming in Java for more than 3 years. I have used many IDEs. I can explain your queries.
$30 CAD за 1 день
5,0 (46 відгуки(-ів))
5,1
5,1
Аватарка користувача
A proposal has not yet been provided
$30 CAD за 1 день
5,0 (7 відгуки(-ів))
4,2
4,2
Аватарка користувача
your netbeans is running with the jdk in your machine, and when you run java -jar it is using the jre.
$35 CAD за 1 день
5,0 (1 відгук)
4,2
4,2
Аватарка користувача
I have fixed same issue earlier for desktop application, when we did export executable jar file from netbeans IDE , got same Class path issue.
$26 CAD за 1 день
0,0 (0 відгуки(-ів))
0,0
0,0

Про клієнта

Прапор CANADA
Richmond Hill, Canada
5,0
1
Спосіб оплати верифіковано
На сайті з груд. 20, 2017

Верифікація клієнта

Інші роботи від цього клієнта

Build a Distribution for a Java EE Application
$10-30 CAD
Дякуємо! Ми надіслали на вашу електронну пошту посилання для отримання безкоштовного кредиту.
Під час надсилання електронного листа сталася помилка. Будь ласка, спробуйте ще раз.
Зареєстрованих користувачів Загальна кількість опублікованих робіт
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Завантажуємо для перегляду
Дозвіл на визначення геолокації надано.
Ваш сеанс входу закінчився, і сеанс було закрито. Будь ласка, увійдіть знову.