New version QSystem 21.1 is available!

Facebook

Функциональность QSystem
× Choosing equipment, install, configure, start using

Tell us about the first stage of operation QSystem. Ask a question about commissioning. Share your experience using the equipment.

Can I run the code in NetBeans

  • R2D2
  • R2D2's Avatar Topic Author
  • Offline
  • Модератор
  • Модератор
More
10 years 1 week ago #823 by R2D2
R2D2 created the topic: Can I run the code in NetBeans
Hello,

I wonder if I can run the code in NetBeans IDE and I need to get for it.

Please Log in or Create an account to join the conversation.

  • Evgenic
  • Evgenic's Avatar
  • Offline
  • Администратор
  • Администратор
More
10 years 1 week ago #824 by Evgenic
Evgenic replied the topic: Can I run the code in NetBeans
Hi,
Yes you can.
1. Source code: hg clone evgeniy.egorov@code.google.com/p/apertum-qsystem/
2. Better Java8 and NetBeans8. Its possible to use Java7/Netbeans7 but copy a file <jre>\lib\jfxrt.jar to a folder <jre>\lib\ext.
3. IVY plugin for NetBeans. Take here code.google.com/p/ivybeans/
4. Build...

​Good luck

В очереди все первые. Каждый в своё время.

Please Log in or Create an account to join the conversation.

  • R2D2
  • R2D2's Avatar Topic Author
  • Offline
  • Модератор
  • Модератор
More
10 years 1 week ago #825 by R2D2
R2D2 replied the topic: Can I run the code in NetBeans
Ok. I understand.

I'm trying to run the project in Netbeans 8.
I have installed the JDK 8, but I get the error "package does not exist" in the following packages :
org.dom4j
org.apache.commons.configuration
javax.mail.*;
com.google.gson
org.apache.commons.pool, etc..


How do I resolve these errors. Where do I get these packages?

Please Log in or Create an account to join the conversation.

  • Evgenic
  • Evgenic's Avatar
  • Offline
  • Администратор
  • Администратор
More
10 years 1 week ago #826 by Evgenic
Evgenic replied the topic: Can I run the code in NetBeans
All dependencies must be downloaded from maven repository by Ivy. For that you need IVY plugin for NetBeans.
Plugin is here code.google.com/p/ivybeans/
There are 2 files. Try use version for NB7.1. Version for NB6.9 had some problem during installation in NB. I fixed it manually. Any way if you will have some problem with plugin try mine from attachment. I hope version for NB7.1 is nice.
Thats all.

В очереди все первые. Каждый в своё время.

Please Log in or Create an account to join the conversation.

  • R2D2
  • R2D2's Avatar Topic Author
  • Offline
  • Модератор
  • Модератор
More
10 years 1 week ago #827 by R2D2
R2D2 replied the topic: Can I run the code in NetBeans
I have loaded all the dependencies but got this error when running:
E:\NETBEANS\QSystem\nbproject\ivy-impl.xml:92: settings file does not exist: E:\NETBEANS\QSystem\${ivy.settings.location}

Please Log in or Create an account to join the conversation.

  • Evgenic
  • Evgenic's Avatar
  • Offline
  • Администратор
  • Администратор
More
10 years 1 week ago - 10 years 1 week ago #828 by Evgenic
Evgenic replied the topic: Can I run the code in NetBeans
not enough libs for ant.
Download ivy apache-mirror.rbc.ru/pub/apache//ant/ivy...c1-bin-with-deps.zip
You should download ivy with all dependencies. All deps in folder "lib" in archive.

Then copy all ivy's jar-files to ant in folder <ant>/lib. For example. Ant locates in C:\Program Files\NetBeans 8.0.0\java\ant. You copy all jar-files from archive(ivy-2.4.0-rc1.jar + 15 jars from lib) to C:\Program Files\NetBeans 8.0.0\java\ant\lib. And try to build.

or ant can be located in C:\Program Files\NetBeans 8.0\extide\ant

В очереди все первые. Каждый в своё время.
Last Edit: 10 years 1 week ago by Evgenic.

Please Log in or Create an account to join the conversation.

  • R2D2
  • R2D2's Avatar Topic Author
  • Offline
  • Модератор
  • Модератор
More
10 years 1 week ago #829 by R2D2
R2D2 replied the topic: Can I run the code in NetBeans
Download the file apache-ivy-2.4.0-rc1-bin-with-deps.zip and copy the jar files in the folder C:\Program Files\NetBeans 8.0.1\extide\ant\lib and also copy the files in the folder C:\Program Files\NetBeans 8.0.1\java\ant\lib but the problem continues.

Any other suggestions?

Please Log in or Create an account to join the conversation.

  • Evgenic
  • Evgenic's Avatar
  • Offline
  • Администратор
  • Администратор
More
10 years 1 week ago #830 by Evgenic
Evgenic replied the topic: Can I run the code in NetBeans
may be NB use other ant. It can be if where are many NBs in computer. New version of NB can use old properties from old NB's versions. For example, NB8 took properties from NB7 and use them. It's OK but need to copy all libs in other ANT.

And. Sometimes lib ant-contrib from sourceforge.net/projects/ant-contrib/fil...0b3-bin.zip/download can be missed. Copy ant-contrib to <ant>/lib/

В очереди все первые. Каждый в своё время.

Please Log in or Create an account to join the conversation.

  • R2D2
  • R2D2's Avatar Topic Author
  • Offline
  • Модератор
  • Модератор
More
10 years 1 week ago #831 by R2D2
R2D2 replied the topic: Can I run the code in NetBeans
Uninstall a previous version of NetBeans and install Netbeans 8 again and now I have this error:

Could not load definitions from resource fr/jayasoft/ivy/ant/antlib.xml. It could not be found.
Could not load definitions from resource net/sf/antcontrib/antcontrib.properties. It could not be found.
E:\PRACTICAS_NETBEANS\QSystem\nbproject\ivy-impl.xml:42: Problem: failed to create task or type if
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.
BUILD FAILED (total time: 0 seconds)

Please Log in or Create an account to join the conversation.

  • Evgenic
  • Evgenic's Avatar
  • Offline
  • Администратор
  • Администратор
More
10 years 1 week ago #832 by Evgenic
Evgenic replied the topic: Can I run the code in NetBeans
lib ant-contrib-1.0b3.jar from sourceforge.net/projects/ant-contrib/fil...0b3-bin.zip/download can be missed. Copy ant-contrib to <ant>/lib/

В очереди все первые. Каждый в своё время.

Please Log in or Create an account to join the conversation.

Time to create page: 0.079 seconds
Работаем с QSystem