Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DSDP - Mobile Tools for Java (MTJ) » build error - .mtj.tmp\emulation (Access is denied)(When I trying build my project I get this error and nothing else (no created *.jar & *.jad files))
build error - .mtj.tmp\emulation (Access is denied) [message #988454] Thu, 29 November 2012 23:14 Go to next message
Sergey Smirnov is currently offline Sergey Smirnov
Messages: 3
Registered: November 2012
Junior Member
Few weeks ago, my project was packed without any problems.
After a small break in the work I encountered the problem can not be packed.
At the same time, in the directory ../.mtj.tmp/emulation/ exist the desired *.jar file.
Help me please. Internet did not give me an answer.
Below is a bug:

C:\Firmware\.mtj.tmp\emulation (Access is denied).

eclipse.buildId=M20120208-0800
java.version=1.7.0_09
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=ru_RU
Command-line arguments: -os win32 -ws win32 -arch x86

java.io.FileNotFoundException: C:\Firmware\.mtj.tmp\emulation (Access is denied)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(Unknown Source)
at java.io.FileOutputStream.<init>(Unknown Source)
at org.eclipse.mtj.internal.core.project.midp.ApplicationDescriptor.store(ApplicationDescriptor.java:661)
at org.eclipse.mtj.internal.core.packaging.midp.DeployedJADWriter.writeJad(DeployedJADWriter.java:153)
at org.eclipse.mtj.internal.core.packaging.midp.DeployedJADWriter.writeDeployedJAD(DeployedJADWriter.java:98)
at org.eclipse.mtj.internal.core.build.packaging.PackageBuilder.updatePackage(PackageBuilder.java:242)
at org.eclipse.mtj.internal.core.build.packaging.PackageBuilder.doBuild(PackageBuilder.java:107)
at org.eclipse.mtj.internal.core.build.MTJIncrementalProjectBuilder.build(MTJIncrementalProjectBuilder.java:70)
at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:728)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:199)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:239)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:295)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:256)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:394)
at org.eclipse.core.internal.resources.Project$1.run(Project.java:618)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2344)
at org.eclipse.core.internal.resources.Project.internalBuild(Project.java:597)
at org.eclipse.core.internal.resources.Project.build(Project.java:114)
at org.eclipse.mtj.internal.ui.preferences.PreverificationPreferencePage$1.run(PreverificationPreferencePage.java:138)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
Re: build error - .mtj.tmp\emulation (Access is denied) [message #1019097 is a reply to message #988454] Fri, 15 March 2013 02:58 Go to previous messageGo to next message
Sergey Smirnov is currently offline Sergey Smirnov
Messages: 3
Registered: November 2012
Junior Member
You must remove all installed software: Java ME + Java ME SDK, J2ME, Eclipse ME and so on. After this need download last version of Java ME SDK + Java ME SDK Plugins for Eclipse (from oracle.com) and install it. After this you need Install new software (In help menu) -> Mobile Tools for Java (MTJ) from Mobile Tools for Java (MTJ) Home Page. Also you need delete directory .metadata in Eclipse workspace default directory.
That's all. And will set up an environment. I hope it help.
Re: build error - .mtj.tmp\emulation (Access is denied) [message #1021317 is a reply to message #1019097] Tue, 19 March 2013 21:26 Go to previous message
Sergey Smirnov is currently offline Sergey Smirnov
Messages: 3
Registered: November 2012
Junior Member
Error occure when in .project file of project in section <buildCommand><name>org.eclipse.mtj.core.packageBuilder</name> add next strings:

<dictionary>
<key>_do_obfuscation</key>
<value>false</value>
</dictionary>
<dictionary>
<key>_do_package</key>
<value>true</value>
</dictionary>
<dictionary>
<key>_update_version</key>
<value>true</value>
</dictionary>

Anyone know what is the reason of this error?

[Updated on: Tue, 19 March 2013 21:26]

Report message to a moderator

Previous Topic:passing a parameter or a value of a variable to another activity every 10seconds?
Next Topic:Cannot install MTJ on Juno
Goto Forum:
  


Current Time: Fri Oct 24 20:35:58 GMT 2014

Powered by FUDForum. Page generated in 0.01636 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software