Eclipse is running under 0, but this Java project has a 10 Java compliance level, so WindowBuilder will not be able to load classes from this project. Use a lower level of Java for the project, or run Eclipse using a newer Java version.
That is the error I'm getting when I installed the window builder. I have made sure both Eclipse and the project are running the same versions yet it is still giving me that error.
Edit:
proof
A MORE SIMPLE SOLUTION: This problem was giving me some difficulty and I hated the hassle of rolling back to a previous version of java to fix it.
There were some developers that workshopped an alternative solution that involved using the install new software function and updating the version of WB via this function. Worked beautifully. The solution is as follows
Wim Jongman CLA Friend 2018-06-06 11:31:54 EDT
...I just got a report back from a user that tells me that upgrading to WB 19.2. helped to solve this issue for him:
Check the installing new software link from [1]
Use the update site from [2]
Select to install everything except stuff that requires WDP
[1] http://help.eclipse.org/oxygen/index.jsp?topic=%2Forg.eclipse.platform.doc.user%2Ftasks%2Ftasks-129.htm&cp=0_3_17
[2] http://download.eclipse.org/windowbuilder/WB/integration/4.8/
Solution FOUND
Drop down to Java 9 and make sure to have 3.a Eclipse and you are good!
http://www.oracle.com/technetwork/java/javase/downloads/java-archive-javase9-3934878.html
There is a link to get Java 9.
Thank you, Everyone, that helped!!
This problem may still occur with WindwowBuilder 1.9.2 and JDK 11 and may be the result of Eclipse itself being launched with an older Java virtual machine.
To solve it, first verify that Project JDK compliance is 11 (Project..Java Compiler..JDK Compliance), and that Java Build Path (Project..Build Path..Libraries) is set to JavaSE-11 (Both settings can also be configured as default for all projects in Window..Preferences..Java..Compiler and Java..InstalledJREs..ExecutionEnvironment).
If that does not solve the problem, then go to
Help..About Eclipse IDE..Installation Details..Configuration
and check the -vm entry to make sure that Eclipse is started with JDK 11.
On Windows the -vm property may be set to something like:
C:\Program Files\Java\jdk-11.0.4\bin\server\jvm.dll
If the configuration's -vm entry points to a lower Java version, then close Eclipse and launch it from the command line by appending ('-vm "path-to-JDK11\bin\server\jvm.dll"). You can also check the eclipse.ini file for the -vm entry (or add the -vm entry to the eclipse.ini file).
Related
I am a very early beginner to coding. I downloaded VS Code so that I could, you know, have somewhere to code in Java. However, I keep getting these two errors telling me these two extensions that I already have installed on VS Code are not working here are the error messages. I already searched through the odds and ends of StackOverflow and have tried everything, and nothing has worked. Any help would be appreciated.
I inputted some code into settings.json under a "java.configuration.runtimes" thing but nothing in it worked. I conformed it to my installation directories and current Java version
Do you have a JDK (Java Development Kit) installed?
If you are on Windows, you can check by clicking on the start button, and search through applications and programs for a Java folder.
If you are on MacOS or Linux, you can open up the terminal/command line and type in "java -version" and if it is properly installed, it will display the version.
If you do not find a JDK installed, install one from https://www.oracle.com/ca-en/java/technologies/downloads/
Download and install the Coding Pack for Java.
It would be helpful to follow this documentation to get started.
I uninstalled Visual Studio 2017 because so many issues trying to build a blank cordova app. I installed VS2015 expecting its better for it. But Im still getting error about this js script that saying a syntax error.
This is my environment variables, Ive installed 32 bit git manually and the java 32 bit sdk.
Can anybody please tell me what am I doing wrong setting cordova for visual studio 2015?
Here is the final close up error Im getting just building a newly created cordova project.
I just got the same problem. I know it was some time ago, but maybe someone will save time:
The library ip-regex have no fixed version and latest is not compatible.
You should change content of index.js with older version e.g.: https://github.com/sindresorhus/ip-regex/blob/9b6153933a856153fe2ca78081f8851761f03b6c/index.js
Or replace version in package configuration.
I can't really reproduce the issue, but no highlighting or intellisense is working in .js files, it works just fine in .json files however.
The default editor for .js files is JSON Editor.
I tried safe-mode, disabling all extensions, resetting all settings, and I even reinstalled the IDE (repair), but the issue still persists.
I will add, that when I launch the IDE and a JS file is open on scope, I get the following error message (highlighting and intellisense don't work anyway):
The 'JavaScriptWebExtensionPackage' package did not load correctly.
The problem may have been caused by a configuration change or by the installation of another extension. You can get more information examining the file 'C:\Users\Shimmy\AppData\Roaming\Microsoft\VisualStudio\14.0\ActivityLog.xml'.
Restarting Visual Studio could help resolve the issue.
Continue to show this error message?
Here you can view the ActivityLog.xml file, I pasted in some of the recent lines I think might be relevant:
<entry>
<record>188</record>
<time>2015/08/14 13:00:57.332</time>
<type>Information</type>
<source>VisualStudio</source>
<description>Begin package load [JavaScriptWebExtensionsPackage]</description>
<guid>{30DB8F9B-EC9F-44D6-B377-83C7C27A1A8B}</guid>
</entry>
<entry>
<record>189</record>
<time>2015/08/14 13:00:57.394</time>
<type>Error</type>
<source>VisualStudio</source>
<description>SetSite failed for package [JavaScriptWebExtensionsPackage]</description>
<guid>{30DB8F9B-EC9F-44D6-B377-83C7C27A1A8B}</guid>
<hr>80131500</hr>
<errorinfo>Expected 1 export(s) with contract name "Microsoft.VisualStudio.JavaScript.Web.Extensions.ReferenceAutoSync.IReferencesFilePathProvider" but found 0 after applying applicable constraints.</errorinfo>
</entry>
<entry>
<record>190</record>
<time>2015/08/14 13:00:57.394</time>
<type>Error</type>
<source>VisualStudio</source>
<description>End package load [JavaScriptWebExtensionsPackage]</description>
<guid>{30DB8F9B-EC9F-44D6-B377-83C7C27A1A8B}</guid>
<hr>80131500</hr>
<errorinfo>Expected 1 export(s) with contract name "Microsoft.VisualStudio.JavaScript.Web.Extensions.ReferenceAutoSync.IReferencesFilePathProvider" but found 0 after applying applicable constraints.</errorinfo>
</entry>
I found answer here: Visual Studio 2015 RTM - Lost JavaScript support after update TypeSript Tools
These are the steps to fix it:
If the “Universal Windows App Development Tools” are still installed:
Go to Programs and Features, select Visual Studio 2015, click Change.
In Visual Studio setup, click Modify.
Deselect the feature “Universal Windows App Development Tools”
Select “Universal Windows App Development Tools” again, and click Update.
If you have already uninstalled the “Universal Windows App Development Tools”:
Reinstall “Universal Windows App Development Tools”
Or, take the following steps to reinstall the JavaScript project system and language service:
Download the installer for your edition of Visual Studio, e.g., vs_community.exe.
Open a CMD window, and run the following command: vs_community.exe /modify /installselectableitems JavaScript_Hidden /passive
I've followed the first steps and got back Javascript support.
Hope this helps
-UPDATED-
After I did the above steps, almost everything was working, except that I got an error message every time I opened a .js file, the following did the trick:
My guess is that only reinstalling the SDK didn't update the MEF cache. You can do this manually by following these steps:
Open a command prompt as administrator
CD into C:\Program Files (x86)\Microsoft Visual Studio
14.0\Common7\IDE
Run devenv /updateconfiguration
Run devenv /clearcache
That got rid of the last error, and everything is working fine.
Source: https://github.com/Microsoft/TypeScript/issues/4238
The issue seems to be fixed on Update 1. I'm on the professional version but I imagine that it applies to all versions.
To be clear, Intellisense was not working for me for css related stuff on razor files and post update 1 it seems to be working.
I know this question is clearly targeting Visual Studio 2015.
However, I wanted to put my two cents in for those who desperately tried out if the accepted answer also works for Visual Studio 2017.
In my case, the loss of syntax highlighting was caused by the new javascript language service. I got it back right after deselecting the following checkbox and restarting Visual Studio:
Tools > Options > Text Editor > JavaScript/TypeScript > Language
Service > Enable the new JavaScript language service.*
Reference: https://developercommunity.visualstudio.com/comments/34109/view.html
I'm trying to build the Chrome V8 javascript engine so I can embed it into my c++ project. I'm following the tutorial here. I downloaded everything that was needed and managed to get the project solution created but when I compile it only 5 of the 12 solutions get compiled correctly. Can someone shed some light on my problem? There doesn't seem to be much info on the web about it.
Some tricks I learned are this:
use the correct gyp command that will generate correct sln files. maybe target architecture argument was wrong or some other parameter you supply to gyp.
I do not know how to properly "clean" the source tree, so if I wanted new options to gyp I just delete the whole source tree and unpack from original archive. (or use svn).
Make sure you use python and cygwin supplied with v8 sources.
I used pc emulator (qemu) to install Windows XP + Visual studio and v8 sources+tools.
I tried various versions of Visual Studio only VS Express 2010 worked.
On linux everything is simpler. And you do not even need to build it, just use "aptitude install v8-dev"
I'm curious if anyone has a solution for running meteor in a debugger. I have some experience with running regular node in a debugger, have used JetBrains Webstorm for this, however it doesn't seem to support meteor (as far as I can tell). If anyone has a solution, would appreciate any information. It seems, eventually this will need to be possible for meteor to become a longterm viable platform.
It looks like the meteor startup script does not support a debugging option at this point, but you can fix this yourself:
Open the meteor startup script in a text editor (use which meteor to find it)
Change the last line (add $NODE_DEBUG parameter):
exec "$DEV_BUNDLE/bin/node" $NODE_DEBUG "$METEOR" "$#"
Now you can launch meteor in debug mode like this:
NODE_DEBUG=--debug meteor