I am using eclipse oxygen 4.7. I have added geb.core-1.1.1.jar, geb-spock-0.10.0.jar, and spock-core-1.1-groovy-2.4.jar to the path.
I am getting the following error.
geb.waiting.Wait cannot be resolved. It is indirectly referenced from required .class files
When I import
geb.waiting
I see waiting as a package but when I add it I get,
Groovy:unable to resolve class geb.waiting
I have changed the geb-core library to 1.1 and 1.0 but I still have the same problem.
Please what could be causing this?
Try to use geb-0.93.0 jar. I had the same Problem and I found the class in that package
Related
I downloaded breeze jar files from the link, then I went to Project Structure->Modules->Dependencies and added downloaded jar files.
I made a new project->Scala class and wrote the following code:
import breeze.linalg_
object Scrpting extends App{
println("hello")
}
I get the following error.
Error:(4, 8) not found: object breeze
import breeze.linalg_
I tried to search online, but was unable to find any clear useful resource on how to use breeze with IntelliJ. Can someone please help me with this? I am using Mac OS.
In your build.sbt file, make sure you add all the dependencies listed under "libraryDependencies" at
https://github.com/scalanlp/breeze
I'm writing a mod (attempting) and an error I have never before seen pops up on my package deceleration screaming
"The type java.util.Map$Entry cannot be resolved. It is indirectly referenced from required .class files"
As far as I know requesting help in the direction of minecraft is a no no but I think this qualifies as a java question
package com.DGmoN.mysticPower.items;
import java.util.Set;
import com.DGmoN.mysticPower.lib.Strings;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.ItemPickaxe;
import net.minecraft.item.ItemTool;
public class MPIPickAxe extends ItemPickaxe {
protected MPIPickAxe() {
super(ToolMaterial.EMERALD);
setUnlocalizedName("MysticPickAxe");
setTextureName(Strings.MODID + ":" + getUnlocalizedName());
setCreativeTab(CreativeTabs.tabMisc);
}
}
Running jdk1.8.0_05 Eclipse Indigo, I haven't used any thing I know of in the direction of the Map thingy.
You're pointing to the wrong jdk, check jdk path and clean build.
This error only occurs when you don't point to correct jdk. Check jdk path and clean build your project.
I have found a different question, the error is similar, and it works, the problem wasnt my jdk but my IDE. Ive changed to Kepler and all my problems are gone
I got the same error when I moved my project from JRE6 to JRE8 directly in eclipse. To resolve this error, I have installed JRE7 and first compiled the code with JRE7 and later with JRE8. My issue got resolved, give a try if this helps you.
project > properties>libraries> select jre system libraries>edit>installed jre>select >edit> and in jre home try to change lower version of java like JRE home(C:\Program Files (x86)\Java\jre1.5.0_22) and JRE name jre1.5.0_22 and finish most probably the problem resolved
So I'm working on a java-made plugin of the well known Cooja Simulator..when I click on a button, I get the exception you see in the title..
I've already read many posts related to the same issue and I have put the issuing classes in the classpath environment var, in this way (I'm working on Ubuntu):
The classes contained in "com/sun/image/codec/jpeg/JPEGCodec" are located here:
"/home/user/contiki-2.6/jar_files/lib", so that the full path is "/home/user/contiki-2.6/jar_files/lib/com/sun/image/codec/jpeg/JPEGCodec".
I've edited the bashrc file and I've inserted the following line:
export CLASSPATH=.:/path1:/path2:/path3:/home/user/contiki-2.6/jar_files/lib
Where the latter one is the path where my problematic classes are located..in the source code, the classes are imported in this way:
import com.sun.image.codec.jpeg.JPEGImageEncoder;
import com.sun.image.codec.jpeg.JPEGCodec;
import com.sun.image.codec.jpeg.JPEGEncodeParam;
And I make the Cooja Simulator starts using the command:
ant run
I've also tried to force the required jar/classes by issuing:
ant -lib /home/user/contiki-2.6/jar_files/lib/com/sun/image/codec/jpeg run_bigmem
but I got the same error.. Anyone who can help me to solve this issue? thanks a lot..
Cooja has its own classloader. To add additional jars add a lib-folder to your plugin and copy the jars into that folder. Then add
se.sics.cooja.GUI.JARFILES = + file1.jar file2.jar
to the cooja.config.
Look at https://github.com/contiki-os/contiki/tree/master/tools/cooja/apps/mspsim as an example - here the required jars are copied by Ant.
I am getting that error :
The import android.graphics.TableMaskFilter cannot be resolved
But I have seen TableMaskFilter class in android.graphics package of android-sdk folder and I am unable to see it inside the android4.0.3 library in Eclipse.
You can't. TableMaskFilter is annotated with #hide, which means it's definition is stripped from android.jar.
I want to use org.eclipse.jdt.ui.refactoring.RenameSupport class
RenameSupport renameSupport = RenameSupport.create(packageFragment, newName,
RenameSupport.UPDATE_REFERENCES);
Here I get an error "The type org.eclipse.jdt.core.refactoring.descriptors.RenameJavaElementDescriptor cannot be resolved. It is indirectly referenced from required .class files".
It looks weird. I thought it should be in the same jar. Help says that RenameJavaElementDescriptors declared in the package org.eclipse.jdt.core.refactoring.descriptors. But I cannot find this package. Where I can find it? Eclipse 3.7
The package you are looking for is in org.eclipse.jdt.core.manipulation project.