Author Topic: VSE 16.0.3: Live Errors: Not Finding imports  (Read 3699 times)

tinker123

  • Community Member
  • Posts: 93
  • Hero Points: 3
VSE 16.0.3: Live Errors: Not Finding imports
« on: January 18, 2013, 07:31:11 pm »
Visual Slickedit 16.0.3
Windows XP Professional

Hi,

I decided to try out VSE Live Errors for Java.   I like it very much, but it isn't finding any imported libraries beyond ones that start with "java.".   

I'm working on a webapp, as a Java ANT project.  Basically I am using the ANT script to compile the project.  That works fine.

Under "Build -> Options" on the Live Errors table I'm using this compiler path
C:\oracle\Middleware\jdk160_29\
For
"Path to JDK 6 or Later" and "JDK Installation Directory"

Under the "Classpath" tab I am using the same path I am using for ANT file which seems to be working fine:
C:\SRArea\workspace\acme\war\WEB-INF\lib\
This path contains all jar files

Any ideas what I could try adjusting?

Thanks in advance either way

Steve
« Last Edit: January 18, 2013, 09:04:57 pm by tinker123 »

Ryan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 986
  • Hero Points: 77
Re: VSE 16.0.3: Live Errors: Not Finding imports
« Reply #1 on: January 18, 2013, 09:00:20 pm »
Does "C:\SRArea\workspace\acme\war\WEB-INF\lib\' contain .jar files which contain the classes that Live Errors is having trouble finding?  Or does that directory contain the actual .class files?

Also have you ever tried SE v17.0.3 with the latest hotfix, with this same workspace, and turned on Live Errors?
« Last Edit: January 18, 2013, 09:03:37 pm by Ryan »

tinker123

  • Community Member
  • Posts: 93
  • Hero Points: 3
Re: VSE 16.0.3: Live Errors: Not Finding imports
« Reply #2 on: January 18, 2013, 09:53:34 pm »
Does "C:\SRArea\workspace\acme\war\WEB-INF\lib\' contain .jar files which contain the classes that Live Errors is having trouble finding?  Or does that directory contain the actual .class files?

Just *.jar files.

Quote
Also have you ever tried SE v17.0.3 with the latest hotfix, with this same workspace, and turned on Live Errors?

Yes.  Just tried 17.  Same problem.   17 looks great FWIW

Steve

Ryan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 986
  • Hero Points: 77
Re: VSE 16.0.3: Live Errors: Not Finding imports
« Reply #3 on: January 18, 2013, 10:09:42 pm »
On the 'Classpath' tab, instead of having the directory on the list, can you instead specify the specific .jar files using 'Add Jar File...'?  Any change in behavior?

Thanks,

Ryan

tinker123

  • Community Member
  • Posts: 93
  • Hero Points: 3
Re: VSE 16.0.3: Live Errors: Not Finding imports
« Reply #4 on: January 18, 2013, 10:26:01 pm »
I went to the classpath tab and selected all of the *.jar files instead of specifying a path.   That solved the problem for all of the foreign libraries I use.

I still have the problem with my own libraries.

I went to the classpath tab and entered the path
C:\SRArea\workspace\acme\war\WEB-INF\lib\classes
and I also tried
C:\SRArea\workspace\acme\war\WEB-INF\lib\classes\com

No luck with either of those

Steve

tinker123

  • Community Member
  • Posts: 93
  • Hero Points: 3
Re: VSE 16.0.3: Live Errors: Not Finding imports
« Reply #5 on: January 22, 2013, 03:42:38 pm »
Live Errors still aren't find the *.class files for my own code, which is in
C:\SRArea\workspace\acme\war\WEB-INF\lib\classes

I tried adding my acme.war file, that didn't help either.

When using the "add path" button on that tab, does VSE need something in the path for it to pick up class files?


Ryan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 986
  • Hero Points: 77
Re: VSE 16.0.3: Live Errors: Not Finding imports
« Reply #6 on: January 22, 2013, 04:02:25 pm »
OK...I'm glad that fixing the classpath fixed the foreign libraries issue.

With respect to the source in your workspace, I think there might be a bug that existed in 16.0.3 with respect to setting the sourcepath for Live Errors.  That is why I asked about trying in the latest v17 with the latest hotfixes, but you said that the same issue still persists, so lets try something else.  At Java Options > Live Errors check Use 'Other Options' from Compiler Tab.  In this field (Java Options > Compiler > Other Options), specify the sourcepath where the compiler would find your source.  It will look something like -sourcepath C:\SRArea\workspace\acme\src .  Hit 'OK' and restart SlickEdit.  Any better?

- Ryan

tinker123

  • Community Member
  • Posts: 93
  • Hero Points: 3
Re: VSE 16.0.3: Live Errors: Not Finding imports
« Reply #7 on: January 22, 2013, 04:18:18 pm »
That worked!

Thank you!

Ryan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 986
  • Hero Points: 77
Re: VSE 16.0.3: Live Errors: Not Finding imports
« Reply #8 on: January 22, 2013, 04:33:00 pm »
You're welcome :).

Looks like Live Errors is having a problem automatically setting the sourcepath for your project.  That should definitely be fixed in v17...if you ever give v17 another look let me know.  The workaround of just setting it yourself is pretty simple...glad we figured out the problem.