You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Ludovic Maître (JIRA)" <ji...@apache.org> on 2007/10/15 13:37:50 UTC

[jira] Created: (OFBIZ-1345) Cannot build product application on Mac OS X: cannot find symbol (symbol : variable JSObject)

Cannot build product application on Mac OS X: cannot find symbol (symbol  : variable JSObject)
----------------------------------------------------------------------------------------------

                 Key: OFBIZ-1345
                 URL: https://issues.apache.org/jira/browse/OFBIZ-1345
             Project: OFBiz
          Issue Type: Bug
          Components: product
    Affects Versions: SVN trunk
         Environment: Mac OS X 10.4, Apple JDK 1.5
            Reporter: Ludovic Maître


The build of this aplpication fail under Mac OS X because the plugin.jar isn't in the classpath.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (OFBIZ-1345) Cannot build product application on Mac OS X: cannot find symbol (symbol : variable JSObject)

Posted by "BJ Freeman (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OFBIZ-1345?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12534896 ] 

BJ Freeman commented on OFBIZ-1345:
-----------------------------------

if your using eclipse on the mac you put in the runas ant properties, for the libraries.
Also I believe that it should be in the Ant that this is done, have to look into it.
if put in the build, there should be a way  to tell the difference between a mac and other OS's since my tools it a different path.

AS as a side not, if the SDK 1.5 is the open source one, it will not run ofbiz.
only the Sun Distro will run ofbiz



> Cannot build product application on Mac OS X: cannot find symbol (symbol  : variable JSObject)
> ----------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-1345
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1345
>             Project: OFBiz
>          Issue Type: Bug
>          Components: product
>    Affects Versions: SVN trunk
>         Environment: Mac OS X 10.4, Apple JDK 1.5
>            Reporter: Ludovic Maître
>         Attachments: applications-products-build.xml.diff
>
>
> The build of this aplpication fail under Mac OS X because the plugin.jar isn't in the classpath.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (OFBIZ-1345) Cannot build product application on Mac OS X: cannot find symbol (symbol : variable JSObject)

Posted by "Jacques Le Roux (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OFBIZ-1345?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacques Le Roux closed OFBIZ-1345.
----------------------------------


> Cannot build product application on Mac OS X: cannot find symbol (symbol  : variable JSObject)
> ----------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-1345
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1345
>             Project: OFBiz
>          Issue Type: Bug
>          Components: product
>    Affects Versions: SVN trunk
>         Environment: Mac OS X 10.4, Apple JDK 1.5
>            Reporter: Ludovic Maître
>            Assignee: Jacques Le Roux
>             Fix For: SVN trunk, Release Branch 4.0
>
>         Attachments: applications-products-build.xml.diff
>
>
> The build of this aplpication fail under Mac OS X because the plugin.jar isn't in the classpath.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (OFBIZ-1345) Cannot build product application on Mac OS X: cannot find symbol (symbol : variable JSObject)

Posted by "Jacques Le Roux (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OFBIZ-1345?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacques Le Roux reassigned OFBIZ-1345:
--------------------------------------

    Assignee: Jacques Le Roux

> Cannot build product application on Mac OS X: cannot find symbol (symbol  : variable JSObject)
> ----------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-1345
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1345
>             Project: OFBiz
>          Issue Type: Bug
>          Components: product
>    Affects Versions: SVN trunk
>         Environment: Mac OS X 10.4, Apple JDK 1.5
>            Reporter: Ludovic Maître
>            Assignee: Jacques Le Roux
>         Attachments: applications-products-build.xml.diff
>
>
> The build of this aplpication fail under Mac OS X because the plugin.jar isn't in the classpath.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (OFBIZ-1345) Cannot build product application on Mac OS X: cannot find symbol (symbol : variable JSObject)

Posted by "David E. Jones (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OFBIZ-1345?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12535329 ] 

David E. Jones commented on OFBIZ-1345:
---------------------------------------

Jacques: please hold off on this until we get more feedback. I have not had any problems building and running on the mac and I'm not aware of anyone else who I work with on a regular basis on mac or linux having a problem with building.

While I don't know this what it leads me to believe is that Ludovic may have something funny in his setup...

But yeah, we should not need to have general java stuff explicitly added anywhere in ofbiz.

> Cannot build product application on Mac OS X: cannot find symbol (symbol  : variable JSObject)
> ----------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-1345
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1345
>             Project: OFBiz
>          Issue Type: Bug
>          Components: product
>    Affects Versions: SVN trunk
>         Environment: Mac OS X 10.4, Apple JDK 1.5
>            Reporter: Ludovic Maître
>            Assignee: Jacques Le Roux
>         Attachments: applications-products-build.xml.diff
>
>
> The build of this aplpication fail under Mac OS X because the plugin.jar isn't in the classpath.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (OFBIZ-1345) Cannot build product application on Mac OS X: cannot find symbol (symbol : variable JSObject)

Posted by "Jacques Le Roux (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OFBIZ-1345?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12534840 ] 

Jacques Le Roux commented on OFBIZ-1345:
----------------------------------------

Did you test your solution at runtime since ?
Also I wonder what to do : this is true (the path) for jre but not for sdk (must add the /jre/ in path then)... Any ideas someone ?

> Cannot build product application on Mac OS X: cannot find symbol (symbol  : variable JSObject)
> ----------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-1345
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1345
>             Project: OFBiz
>          Issue Type: Bug
>          Components: product
>    Affects Versions: SVN trunk
>         Environment: Mac OS X 10.4, Apple JDK 1.5
>            Reporter: Ludovic Maître
>         Attachments: applications-products-build.xml.diff
>
>
> The build of this aplpication fail under Mac OS X because the plugin.jar isn't in the classpath.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (OFBIZ-1345) Cannot build product application on Mac OS X: cannot find symbol (symbol : variable JSObject)

Posted by "Ludovic Maître (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OFBIZ-1345?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12535425 ] 

Ludovic Maître commented on OFBIZ-1345:
---------------------------------------

Hi David,

Which version of Mac OS X and JDK did you use ? A priori i haven't a funny setup:
Mac OS X 10.4.10 :
powerduo:/Volumes/Datas/Workspaces/MavenMisc/maven-jstools-plugin ludo$ uname -a
Darwin powerduo.ubik-products.com 8.10.1 Darwin Kernel Version 8.10.1: Wed May 23 16:33:00 PDT 2007; root:xnu-792.22.5~1/RELEASE_I386 i386 i386
JDK 1.5 build 07 (not the open jdk, the one shipped with Tiger and later updated wit the updates on the Apple Developer Connection website) :
powerduo:/Volumes/Datas/Workspaces/MavenMisc/maven-jstools-plugin ludo$ java -version
java version "1.5.0_07"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-164)
Java HotSpot(TM) Client VM (build 1.5.0_07-87, mixed mode, sharing)

Also the same problem occur on my powerpcg4 and on the mac mini of one of my firends.
Where is located the plugin.jar on your system ? Perhaps you could attach the output of ant running in verbose mode ( -v) for building the product app on your mac so i can see what is wrong with my setup ?

Before submitting this patch i was copying manually the plugin.jar into the lib folder of the framework base component and it works, but i now would like to be able to build Ofbiz continously with CruiseControl, so i would like to be able to compile right after updating the subversion view and avoid the extra step of copying the JAR.

Thanks for your time,
PS:  i hope you didn't have take bad my comment on the boolean versus string comparison thread: i probably have a lack of  diplomacy when i write in english, sorry for that!

> Cannot build product application on Mac OS X: cannot find symbol (symbol  : variable JSObject)
> ----------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-1345
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1345
>             Project: OFBiz
>          Issue Type: Bug
>          Components: product
>    Affects Versions: SVN trunk
>         Environment: Mac OS X 10.4, Apple JDK 1.5
>            Reporter: Ludovic Maître
>            Assignee: Jacques Le Roux
>         Attachments: applications-products-build.xml.diff
>
>
> The build of this aplpication fail under Mac OS X because the plugin.jar isn't in the classpath.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (OFBIZ-1345) Cannot build product application on Mac OS X: cannot find symbol (symbol : variable JSObject)

Posted by "Jacques Le Roux (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OFBIZ-1345?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacques Le Roux resolved OFBIZ-1345.
------------------------------------

       Resolution: Won't Fix
    Fix Version/s: Release Branch 4.0
                   SVN trunk

Sounds like anymore an issue...

> Cannot build product application on Mac OS X: cannot find symbol (symbol  : variable JSObject)
> ----------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-1345
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1345
>             Project: OFBiz
>          Issue Type: Bug
>          Components: product
>    Affects Versions: SVN trunk
>         Environment: Mac OS X 10.4, Apple JDK 1.5
>            Reporter: Ludovic Maître
>            Assignee: Jacques Le Roux
>             Fix For: SVN trunk, Release Branch 4.0
>
>         Attachments: applications-products-build.xml.diff
>
>
> The build of this aplpication fail under Mac OS X because the plugin.jar isn't in the classpath.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (OFBIZ-1345) Cannot build product application on Mac OS X: cannot find symbol (symbol : variable JSObject)

Posted by "BJ Freeman (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OFBIZ-1345?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12535325 ] 

BJ Freeman commented on OFBIZ-1345:
-----------------------------------

little red faced here.
not sure about plugin.jar
I was referring to tools.jar


> Cannot build product application on Mac OS X: cannot find symbol (symbol  : variable JSObject)
> ----------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-1345
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1345
>             Project: OFBiz
>          Issue Type: Bug
>          Components: product
>    Affects Versions: SVN trunk
>         Environment: Mac OS X 10.4, Apple JDK 1.5
>            Reporter: Ludovic Maître
>            Assignee: Jacques Le Roux
>         Attachments: applications-products-build.xml.diff
>
>
> The build of this aplpication fail under Mac OS X because the plugin.jar isn't in the classpath.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (OFBIZ-1345) Cannot build product application on Mac OS X: cannot find symbol (symbol : variable JSObject)

Posted by "David E. Jones (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OFBIZ-1345?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12535638 ] 

David E. Jones commented on OFBIZ-1345:
---------------------------------------

For me java -version gives the same results:

java version "1.5.0_07"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-164)
Java HotSpot(TM) Client VM (build 1.5.0_07-87, mixed mode, sharing)

How, exactly, are you building?

I generally just run "ant" in the ofbiz home directory, or "ant run-install" if I want it to load the seed and demo data too (or other variations for different purposes). OFBiz is setup so you can do the following (on any system, if Java is setup properly):

svn co ...
cd ofbiz
ant run-install
java -jar ofbiz.jar

And that's all you need to run.

I noticed some mention of maven in the paths you are running from. Are you trying to build through maven?

Whatever the case, please describe EXACTLY (step by step) how you are trying to build.

> Cannot build product application on Mac OS X: cannot find symbol (symbol  : variable JSObject)
> ----------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-1345
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1345
>             Project: OFBiz
>          Issue Type: Bug
>          Components: product
>    Affects Versions: SVN trunk
>         Environment: Mac OS X 10.4, Apple JDK 1.5
>            Reporter: Ludovic Maître
>            Assignee: Jacques Le Roux
>         Attachments: applications-products-build.xml.diff
>
>
> The build of this aplpication fail under Mac OS X because the plugin.jar isn't in the classpath.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (OFBIZ-1345) Cannot build product application on Mac OS X: cannot find symbol (symbol : variable JSObject)

Posted by "Ludovic Maître (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OFBIZ-1345?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12534893 ] 

Ludovic Maître commented on OFBIZ-1345:
---------------------------------------

Hi Jacques,

I hqven't been able to test at runtime yet. The solution is good for any version of the JDK (there is no JRE on Mac OS X, only the full distro) shipped with Mac OS X, for other OS i don't know. If the jar isn't here then it is silently discarder from the classpath. If the error also happen on other OSes i guess we could add safely <fileset file="${java.home}/jre/lib/plugin.jar"/> to the classpath, this has no unattended side effects, as far as i can imagine.

> Cannot build product application on Mac OS X: cannot find symbol (symbol  : variable JSObject)
> ----------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-1345
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1345
>             Project: OFBiz
>          Issue Type: Bug
>          Components: product
>    Affects Versions: SVN trunk
>         Environment: Mac OS X 10.4, Apple JDK 1.5
>            Reporter: Ludovic Maître
>         Attachments: applications-products-build.xml.diff
>
>
> The build of this aplpication fail under Mac OS X because the plugin.jar isn't in the classpath.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (OFBIZ-1345) Cannot build product application on Mac OS X: cannot find symbol (symbol : variable JSObject)

Posted by "Ludovic Maître (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OFBIZ-1345?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ludovic Maître updated OFBIZ-1345:
----------------------------------

    Attachment: applications-products-build.xml.diff

This is a patch to the build.xml file of the product application which add ${java.home}/lib/plugin.jar to the classpath at compile time. This allow to compile; i don't know what happen at run time.

> Cannot build product application on Mac OS X: cannot find symbol (symbol  : variable JSObject)
> ----------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-1345
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1345
>             Project: OFBiz
>          Issue Type: Bug
>          Components: product
>    Affects Versions: SVN trunk
>         Environment: Mac OS X 10.4, Apple JDK 1.5
>            Reporter: Ludovic Maître
>         Attachments: applications-products-build.xml.diff
>
>
> The build of this aplpication fail under Mac OS X because the plugin.jar isn't in the classpath.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (OFBIZ-1345) Cannot build product application on Mac OS X: cannot find symbol (symbol : variable JSObject)

Posted by "Jacques Le Roux (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OFBIZ-1345?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12535317 ] 

Jacques Le Roux commented on OFBIZ-1345:
----------------------------------------

This is interesting, what is the path needed for your platform BJ ?

We may add all the pathes needed, then nobody will complain :o)

> Cannot build product application on Mac OS X: cannot find symbol (symbol  : variable JSObject)
> ----------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-1345
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1345
>             Project: OFBiz
>          Issue Type: Bug
>          Components: product
>    Affects Versions: SVN trunk
>         Environment: Mac OS X 10.4, Apple JDK 1.5
>            Reporter: Ludovic Maître
>            Assignee: Jacques Le Roux
>         Attachments: applications-products-build.xml.diff
>
>
> The build of this aplpication fail under Mac OS X because the plugin.jar isn't in the classpath.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (OFBIZ-1345) Cannot build product application on Mac OS X: cannot find symbol (symbol : variable JSObject)

Posted by "Jacques Le Roux (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OFBIZ-1345?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12535345 ] 

Jacques Le Roux commented on OFBIZ-1345:
----------------------------------------

David,

I was interested by this issue since I already faced this problem on Windows : OFBIZ-92. I thing Ludovic's suggestion is harmless and suppler than OFBIZ-92. What is wrong with having  a relative java path in our build as long as we provide enough pathes for everybody, licence issue (I can't see any though)?

> Cannot build product application on Mac OS X: cannot find symbol (symbol  : variable JSObject)
> ----------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-1345
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1345
>             Project: OFBiz
>          Issue Type: Bug
>          Components: product
>    Affects Versions: SVN trunk
>         Environment: Mac OS X 10.4, Apple JDK 1.5
>            Reporter: Ludovic Maître
>            Assignee: Jacques Le Roux
>         Attachments: applications-products-build.xml.diff
>
>
> The build of this aplpication fail under Mac OS X because the plugin.jar isn't in the classpath.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.