Opened 16 years ago

Closed 15 years ago

Last modified 15 years ago

#954 closed defect (worksforme)

Build Error - AttributeError: java package 'sys' has no attribute 'path'

Reported by: [email protected] Owned by: jkuhnert
Priority: high Milestone:
Component: BuildTools Version: 0.4
Keywords: Cc:
Blocked By: Blocking:


I am using and cannot produce a custom build past r4205.

Command Used:

ant -Ddocless=true -Dversion=0.3.1 -Dprofile=minimal release

Custom Profile Modifications:

Added dojo.validate.web to minimal profile.

Error Messages:


[echo] profileFile: profiles/minimal.profile.js

[script] Traceback (innermost last): [script] File "<string>", line 4, in ? [script] AttributeError?: java package 'sys' has no attribute 'path'

BUILD FAILED /opt/dojo/buildscripts/build.xml:682: The following error occurred while executing this line: /opt/dojo/buildscripts/build.xml:523: Traceback (innermost last):

File "<string>", line 4, in ?

AttributeError?: java package 'sys' has no attribute 'path'

Change History (4)

comment:1 Changed 15 years ago by dylan

Owner: changed from anonymous to jkuhnert

comment:2 Changed 15 years ago by jkuhnert

Resolution: worksforme
Status: newclosed

I am unable to re-produce this anymore. If you still get this error from the current dojo trunk I'll be happy to debug further. (Though I will need your java/operating system/ant versions to be able to test anything useful).

comment:3 Changed 15 years ago by [email protected]

This issue appeared for me on Gentoo Linux. I was able to solve it by fixing my screwed up Java settings.

I ended up unmerging java-config-1 and java-config-2 as well as both JDK's

emerge -C =java-config-1* =java-config-2* =sun-jdk-1.4* =sun-jdk-1.5*

Then I re-emerged the configs and the 1.4 JDK

emerge =java-config-1* =java-config-2* =sun-jdk-1.4*

and made sure things were cool with java-check-environment. Then I re-emerged JDK 1.5

emerge =sun-jdk-1.5*

I also umnerged everything having to do with ant (ant, ant-core, ant-tasks) and re-emerged them. I had to make sure that as I re-emerged these, I got rid of the ~/.ant/lib folder for the emerging user (root) in my case. Also, I unmerged any Rhino and Jython packages that I might have had.

After that, Dojo built like a champ.

Other resources:

comment:4 Changed 15 years ago by (none)

Milestone: 0.4

Milestone 0.4 deleted

Note: See TracTickets for help on using tickets.