IntelliJ SDK for Plugin cannot find com.intellij.tasks - java

This must be a painfully simple question but I am new to IntelliJ. I am running 14.1 community, and created a new plugin project.
This asked me to set the SDK, which is install of IntelliJ. No problem, I pointed it at the IDEA directory.
I grabbed some example source for creating a task repository from github.
When I try to import any of the actual classes in the Task jar, I get no classdef errors all over.
It shows that it knows about com.intellij.tasks but all of the classes are missing.
What rookie mistake have I made?

In order to use com.intellij.tasks.* classes in plugin project, I've added plugins/tasks/lib/tasks-*.jar jars from IDEA installation to the classpath of SDK used to build plugin project.

Related

Running Java based open source

This is my first time to use Java, and I have no experience in Java, but good experience in .Net
I have downloaded an open source code called ctakes
and downloaded IntelliJ IDE community version
i pointed to the main folder of the project to be opened by IntelliJ IDE
but when i try to run it, it does not work
not sure what the problem is and how to fix it.
I want help in making the code runs successfully, any help appreciated.
Assuming you are talking about this repo, this is a maven based project. In order to import it correctly, follow this link
and refer to Open an existing Maven project section.
A maven is a build tool that will automatically download all the dependencies required for the project source and apply them in classpath accordingly.
You might have to install maven first. You can download that from here.

Android Studio 2.2: Integration of the ImmobilienScout24 Rest API from Github

I am in need of some serious help.
I have this project where I need to Import/ export stuff from the is24-api-android-sdk that can be found on GitHub (here). I opened up a new application with a blank activity for starters. Then downloaded the zip file. I unpacked it and tried to add the sdk via import module but it always wants me to specify the gradle or android eclipse project but there are no gradle files. I also tried to add it via maven or compile the dependency straight on but i find no information how to do this that way.
I'm just stuck big time and not sure how to help myself. Is there any instructions or help you can give me.

Cant reference org.osgi.* in plugins

Some time ago, I created a project with multiple OSGi plugins. Today I reinstalled Eclipse for RCP and RAP Developers, imported the project, and discovered that some errors are occurring in the plugins. Specifically, the org.osgi.* path can't be referenced:
Does anybody know, why this reference errors are occurring and how to resolve them?
The project must be missing the required OSGi core dependencies on its classpath. There are two ways to resolve this:
Make sure the project is created as a plugin project, and that the MANIFEST.MF exists. There should be a project creation wizard that allows you to create the project as an Eclipse plugin.
If you use Maven in your project, the best way to manage your RCP projects is to use Tycho. It helps automatically resolving plugin dependencies and building your project (even from the command line) and is a much better solution for the long term.
Maybe you are missing the target platform setup. This is where plugin projects get their build time dependencies from.

IntelliJ can't find any LibGDX packages?

I have just switched to Ubuntu and I've installed IntelliJ IDEA 14 Community Edition. When I imported my existing project, I found that IntelliJ can't seem to find any of the LibGDX dependencies. I installed Gradle beforehand. I've tried using the Gradle wrapper included with the IntelliJ project to and saying ./gradlew --refresh-dependencies, but this doesn't seem to do much of anything. My external TweenEngine packages were loaded just fine. It seems to only be with the LibGDX packages that IntelliJ is having a problem with. I do not wish to have IntelliJ see my project as a Gradle Project, as then it will have to sync. I prefer to do things myself in that regard.
My guess is that Gradle isn't installing the LibGDX dependencies, but I'm not entirely sure why that would be happening. Shouldn't ./gradlew --refresh-dependencies install them? The errors I get are all the same as this one, just with different package names and different line numbers:
Error:(7, 24) java: package com.badlogic.gdx does not exist
The line numbers correlate to my LibGDX class imports, so this is what leads me to believe that Gradle is not installing the dependencies.
When I imported the project, I selected the build.gradle file. I have the local.properties file pointing to a valid Android SDK.
If you want a specific look at the project and would like more detail than I have provided, feel free to check out the source code: http://bitbucket.org/Sonic2kk/mr.-ballguy/
What could be causing these errors and how can I correct them?
Try installing the android sdk. If that doesn't work, try reinstalling IntelliJ.
Also, try linking your IntelliJ project to IntelliJ's Gradle plugin.

can eclipse plugin project depend on java project

I have an eclipse plugin project which dependes on java project in my eclipse. usually what I did is export the project as jar and use it as-is in the plugin. but this requires manual work. can I have a reference from my plugin projct to a java project that will be both compile-time and run-time dependency ?
I saw a similar question, but not exactly the same.
I think, the closest thing to this is to create a jar file from the referenced project, and import it to the projects repository. But thats quite hard to manage for a currently developed project.
On the other hand, isn't it possible to simply convert the Java project into a plug-in permanently? If the other user does not use OSGi/Eclipse, he/she will see only a manifest/manifest.mf file (and possibly a plugin.xml) next to the java project specific stuff, so this would not disturb them, but would help you.

Categories

Resources