NetXMS Support Forum

English Support => General Support => Topic started by: Billy on February 27, 2011, 03:59:05 PM

Title: How can i rebuild the new java console from scratch?(by the java source code)
Post by: Billy on February 27, 2011, 03:59:05 PM
hi,Victor!
 
  please give me an instruction or rebuild step list,required packages or libs,and right compile environment as well.

  thank you!

regards

Title: Re: How can i rebuild the new java console from scratch?(by the java source code)
Post by: Victor Kirhenshtein on February 27, 2011, 05:45:41 PM
Hi!

You will require Maven and Eclipse 3.6. First, run "package" script from src/java directory - it will build client library using maven and put resulting jars into appropriate places. Then, import all projects under src/java/netxms-eclipse into Eclipse, find file nxmc.product under nxmc-core project, right-click on it and select "export". In export dialog, select "Eclipse product", press Next, and follow the wizard. If you wish just test something after changes in source code, you can run console directly from Eclipse by right-clicking nxmc.product and selecting Run As -> Eclipse Application.

Best regards,
Victor
Title: Re: How can i rebuild the new java console from scratch?(by the java source code)
Post by: Billy on February 27, 2011, 05:48:41 PM
thank you! i'll try it now!
Title: Re: How can i rebuild the new java console from scratch?(by the java source code)
Post by: Billy on February 28, 2011, 02:04:41 PM
Hi,Victor!

   i have downloaded the eclipse 3.6 with maven updated, and do the jobs by your instructions,after that,
   the eclipse tell me that the maven needs jdk, so i want to know which version of jdk should i use?

   another question is, in this java project,  whether the domain server is needed for the eclipse development environment?

   thank you!

best regards
Title: Re: How can i rebuild the new java console from scratch?(by the java source code)
Post by: Victor Kirhenshtein on February 28, 2011, 09:44:07 PM
I use 1.6.22. but any 1.6 will be ok.

Quote from: Billy on February 28, 2011, 02:04:41 PM
   another question is, in this java project,  whether the domain server is needed for the eclipse development environment?

Sorry, I didn't understand the question. What is the connection between domain server (what domain btw? DNS? Active Directory?) and Eclipse?

Best regards,
Victor
Title: Re: How can i rebuild the new java console from scratch?(by the java source code)
Post by: Billy on March 02, 2011, 01:24:30 PM
thank you, victor.