Cannot deploy new Liferay theme "The filename or extension is too long" - eclipse

I'm new to Liferay and Eclipse, and I'm trying to do some simple theme development. However, once I right click my theme (which I just created) and go to Liferay->SDK->deploy I get the following error:
BUILD FAILED
C:\sdk6.2\build-common-plugin.xml:482: The following error occurred while executing this line:
C:\sdk6.2\build-common.xml:993: The following error occurred while executing this line:
C:\sdk6.2\build-common.xml:299: The following error occurred while executing this line:
C:\sdk6.2\build-common.xml:1783: The following error occurred while executing this line:
C:\sdk6.2\build-common.xml:175: java.io.IOException: Cannot run program "C:\jre7\bin\java.exe": CreateProcess error=206, The filename or extension is too long
I was using a longer path for my SDK and JRE7 but reduced it to what you see in the above error message (to no avail). Does anyone know how to fix this problem?

Reconfigure your SDK folder, try to use a label for it without any "." or special char.
For example:
C:\liferay\sdk621\
And tell us your results...it could be a windows/ant path problem...

Related

error: the following arguments are required: --path An exception has occurred, use %tb to see the full traceback.

project on https://github.com/linouk23/NBA-Player-Movements. Could you please let me know how to execute this project? I'm new to python. It'll help me to kick start my work on project. I'm executing my project on Spyder and installed all necessary libraries. I'm getting error as
usage: main.py [-h] --path PATH [--event EVENT]
main.py: error: the following arguments are required: --path
An exception has occurred, use %tb to see the full traceback.
For windows:
Open the extracted folder and press "shift + right click" and from there "Open command window here".
In cmd enter python main.py
Well, I tried in Jupyter Notebook and it failed, then I copied it in a .py file and run (Ubuntu) in terminal ,it worked.
I don't know how to solve the problem but I can 'avoid' this.
For the ones who are receiving this error, another thing to check is the way you are passing the arguments. Arguments are passed by adding two leading hyphens. So, when the error says
following arguments are required: example_arg
your code should be
parser.add_argument('--example_arg', 'arg1'). Note the two leading hyphens --

Compiling vb project using VBC throwing error

I have VB project, which is compiling/building perfectly using vb6 IDE in XP mode.
My objective is to automate the deployment process, so am trying to build this project in command line using VBC.
But while compiling vb project in window 7 using VBC.exe and cmd its throwing following error/exception.
Example:
error: BC30203: Identifier expected.
error: BC30481:'class' statement must end with matching end class.
error: BC30617:'Module' statement can occur only at file or namespace level.
Does anybody have any suggestion ideas what am missing here.
Thanks in advance.

How to find location of error from stacktrace alone

If I run a java file from my IDE and an exception is thrown, a hyperlink is printed that I can use to view the line of code that threw the Exception.
However, if I run from terminal all I will get is something like this:
at java.util.TreeMap.put(TreeMap.java:531)
with obviously no hyperlink. How do I use the 531 to navigate to the line of code that is responsible for the error?
You can copy/paste your stacktrace to the eclipse console. Your stacktrace will magically become clickable and will open the file in which the error occured, provided eclipse has it in its class path.

Error when running yeoman init

I'm getting the following error when I run `yeoman init angularĂ¹, although the angular part shouldn't matter, since I got the same error:
create test/lib/angular-mocks.js
<WARN> Unable to create directory "/Users/myuserfolder/test/lib" (Error code: ENOTDIR). Use --force to continue. </WARN>
it seems to be trying to create a file in my home folder, which is weird, becuse I cd'd into a folder designated for my project. What could be going on here?
That is a known bug caused by you having a Gruntfile in your home directory.

Compiler Error- only when compiling from the command line

error CS0583: Internal Compiler Error (0xc0000017 at address 7C812AFB): likely culprit is 'IMPORT'.
An internal error has occurred in the compiler. To work around this problem, try simplifying or changing the program near the locations listed below. Locations at the top of the list are closer to the point at which the internal error occurred. Errors such as this can be reported to Microsoft by using the /errorreport option.
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorlib.dll: error CS0586: Internal Compiler Error: stage 'IMPORT'
error CS0587: Internal Compiler Error: stage 'IMPORT'
error CS0587: Internal Compiler Error: stage 'PARSE'
error CS0587: Internal Compiler Error: stage 'BEGIN'
Our code does not generate any errors when compiling it in the VS2005 UI.
What could be causing this issue?
This question is likely dead, but for those coming here form Google:
Deleting your PDB files may be of help.
http://msdn.microsoft.com/en-us/library/93sk305h.aspx
Additionally you may want to try turning off Incremental Compilation:
http://bytes.com/topic/c-sharp/answers/233482-compiler-internal-error
If I resolve it on our own build server, I will post updated information.
I fixed the problem by repairing the visual studio in the control panel in the following address:
Control Panel\All Control Panel Items\Programs and Features