LAE

Welcome to the LAE community!  Please feel free to start a discussion in the discussion tab or join in a conversation.

Discussions

Members

Resources

Events

 View Only
  • 1.  Java Node Complie Path issue

    Employee
    Posted 08-07-2017 05:07

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: Chris962

    HI Guys...

    Wow first post for me here....

    Using the Desktop version and trying to get the Java Node working..

    The doco is a bit lite on examples, also I seem to be getting errors with the node trying to reference a path that is not valid

    file:/C:/Program%20Files%20(x86)/Lavastorm/LAETemp/tmp/cache/brain/MJP-JGEN/1930182725/0/src/pkg59848a4938717a69/JavaSolace2.java:43:cannot find symbol

    this path is valid up to the MJP-JGEN part then the rest does not exist

    I have the path set correctly in the Classpaths section...

    Many thanks

    Chris


  • 2.  RE: Java Node Complie Path issue

    Employee
    Posted 08-07-2017 05:22

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: Tim Meagher

    What is the rest of the error message?
    The path mentioned is created dynamically to create and compile the Java code within the node, so will be cleaned up after the node has finished.


  • 3.  RE: Java Node Complie Path issue

    Employee
    Posted 08-07-2017 05:27

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: Chris962

    ERROR: Error compiling source unit.
    Error occurred attempting to compile source with entry type (com.lavastorm.tools.build.java.MultiJavaBuiltUnit ).
    Compilation diagnostics:
    file:/C:/Program%20Files%20(x86)/Lavastorm/LAETemp/tmp/cache/brain/MJP-JGEN/1054094045/0/src/pkg59848a4938717a69/JavaSolace.java:11:package com.solacesystems does not exist
    file:/C:/Program%20Files%20(x86)/Lavastorm/LAETemp/tmp/cache/brain/MJP-JGEN/1054094045/0/src/pkg59848a4938717a69/JavaSolace.java:43:cannot find symbol
    symbol: class JCSMPProperties
    location: class pkg59848a4938717a69.JavaSolace
    file:/C:/Program%20Files%20(x86)/Lavastorm/LAETemp/tmp/cache/brain/MJP-JGEN/1054094045/0/src/pkg59848a4938717a69/JavaSolace.java:43:cannot find symbol
    symbol: class JCSMPProperties
    location: class pkg59848a4938717a69.JavaSolace
    file:/C:/Program%20Files%20(x86)/Lavastorm/LAETemp/tmp/cache/brain/MJP-JGEN/1054094045/0/src/pkg59848a4938717a69/JavaSolace.java:56:cannot find symbol
    symbol: variable session
    location: class pkg59848a4938717a69.JavaSolace
    file:/C:/Program%20Files%20(x86)/Lavastorm/LAETemp/tmp/cache/brain/MJP-JGEN/1054094045/0/src/pkg59848a4938717a69/JavaSolace.java:56:cannot find symbol
    symbol: variable JCSMPFactory
    location: class pkg59848a4938717a69.JavaSolace
    file:/C:/Program%20Files%20(x86)/Lavastorm/LAETemp/tmp/cache/brain/MJP-JGEN/1054094045/0/src/pkg59848a4938717a69/JavaSolace.java:57:cannot find symbol
    symbol: variable consumer
    location: class pkg59848a4938717a69.JavaSolace
    file:/C:/Program%20Files%20(x86)/Lavastorm/LAETemp/tmp/cache/brain/MJP-JGEN/1054094045/0/src/pkg59848a4938717a69/JavaSolace.java:57:cannot find symbol
    symbol: class XMLMessageListener
    location: class pkg59848a4938717a69.JavaSolace
    file:/C:/Program%20Files%20(x86)/Lavastorm/LAETemp/tmp/cache/brain/MJP-JGEN/1054094045/0/src/pkg59848a4938717a69/JavaSolace.java:57:cannot find symbol
    symbol: variable session
    location: class pkg59848a4938717a69.JavaSolace
    file:/C:/Program%20Files%20(x86)/Lavastorm/LAETemp/tmp/cache/brain/MJP-JGEN/1054094045/0/src/pkg59848a4938717a69/JavaSolace.java:58:cannot find symbol
    symbol: variable consumer
    location: class pkg59848a4938717a69.JavaSolace
    file:/C:/Program%20Files%20(x86)/Lavastorm/LAETemp/tmp/cache/brain/MJP-JGEN/1054094045/0/src/pkg59848a4938717a69/JavaSolace.java:59:cannot find symbol
    symbol: class XMLMessage
    location: class pkg59848a4938717a69.JavaSolace
    file:/C:/Program%20Files%20(x86)/Lavastorm/LAETemp/tmp/cache/brain/MJP-JGEN/1054094045/0/src/pkg59848a4938717a69/JavaSolace.java:59:cannot find symbol
    symbol: variable consumer
    location: class pkg59848a4938717a69.JavaSolace
    file:/C:/Program%20Files%20(x86)/Lavastorm/LAETemp/tmp/cache/brain/MJP-JGEN/1054094045/0/src/pkg59848a4938717a69/JavaSolace.java:85:cannot find symbol
    symbol: variable consumer
    location: class pkg59848a4938717a69.JavaSolace
    file:/C:/Program%20Files%20(x86)/Lavastorm/LAETemp/tmp/cache/brain/MJP-JGEN/1054094045/0/src/pkg59848a4938717a69/JavaSolace.java:85:cannot find symbol
    symbol: variable consumer
    location: class pkg59848a4938717a69.JavaSolace
    file:/C:/Program%20Files%20(x86)/Lavastorm/LAETemp/tmp/cache/brain/MJP-JGEN/1054094045/0/src/pkg59848a4938717a69/JavaSolace.java:86:cannot find symbol
    symbol: variable session
    location: class pkg59848a4938717a69.JavaSolace
    file:/C:/Program%20Files%20(x86)/Lavastorm/LAETemp/tmp/cache/brain/MJP-JGEN/1054094045/0/src/pkg59848a4938717a69/JavaSolace.java:86:cannot find symbol
    symbol: variable session
    location: class pkg59848a4938717a69.JavaSolace


  • 4.  RE: Java Node Complie Path issue

    Employee
    Posted 08-07-2017 05:38

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: Tim Meagher

    The message:
    			
    				package com.solacesystems does not exist
    			
    
    Seems to suggest that a required jar cannot be located on the classpath of the node.


  • 5.  RE: Java Node Complie Path issue

    Employee
    Posted 08-08-2017 00:00

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: Chris962

    I've resolved most of the errors, it was due to having to declare 'import' each class within the JAR...(which is not clear in the documentation - talks about JAR then the Classes need to the referenced)


  • 6.  RE: Java Node Complie Path issue

    Employee
    Posted 08-08-2017 01:41

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: Tim Meagher

    Hi,

    			
    				it was due to having to declare 'import' each class within the JAR...(which is not clear in the documentation - talks about JAR then the Classes need to the referenced)
    			
    
    If this is referring to the Lavastorm documentation, this is probably true.
    That you need to import each class (or use the .* notation to import all multiple from a package) is just part of the Java language.
    We haven't gone and created our own documentation around the Java language and using Java - for hopefully obvious reasons.

    If you are new to Java you should probably start with some of the Java language documentation - e.g: https://docs.oracle.com/javase/tutorial/
    E.g. the section on packages I think has the info you would be looking for here: https://docs.oracle.com/javase/tutor...e/usepkgs.html

    Regards,
    Tim.