Selenium package "com.thoughtworks" cannot be resolved in Eclipse - eclipse

I want to make a Selenium project with Eclipse. I have added the reference to the selenium-server-standalone-3.4.0.jar file but I cannot import the package com.thoughtworks so the following lines produce an error:
import com.thoughtworks.selenium.DefaultSelenium;
import com.thoughtworks.selenium.Selenium;

Selenium RC has become obsolete in the newer selenium versions.
Download Selenium server 2.43 jar file, include it in your project and your issue will be gone.

Related

openfire build install4j jar file

I am trying to build openfire from the source code. getting compile time error. below classes not found.
import com.install4j.api.Context;
import com.install4j.api.ProgressInterface;
import com.install4j.api.UninstallAction;
from where we can download these jar files. tried
https://mvnrepository.com/artifact/com.install4j?sort=newest
all the jar file still does not work. Any idea.
Thanks
Mohsin
The install4j artifacts are available from the repository
https://maven.ej-technologies.com/repository
See https://www.ej-technologies.com/resources/install4j/help/api for more information.

Cannot import external JAVA library using Jython in Eclipse

I'm new to Jython and to Eclipse. I'm trying to use the JGraphX JAVA library. I've created a new PyDev project and package. I've right-clicked on the project properties in Eclipse, selected "PyDev - PYTHONPATH" and added jgraphx.jar. In the init.py file, I've tried:
import jgraphx as jgx
from jgraphx import *
Neither approach works. The code is underlined as an error in Eclipse. When I run, I get "ImportError: No module named jgraphx". What am I doing wrong?
Thank you,
-david
I'm not familiar with the JGraphX library.
To import a java class
you need to use from my.project.package import someclass

Red5 and Eclipse

I want setup red5chatv2.1 but Eclipse(juno) Java compiler say error.
The import org.red5.server.api.ScopeUtils cannot be resolved !
I have red5 1.0.0, java 7.0
package chat;
import org.red5.server.adapter.ApplicationAdapter;
import org.red5.server.api.IConnection;
import org.red5.server.api.IClient;
import org.red5.server.api.scope.IScope;
import org.red5.server.api.Red5;
import org.red5.server.api.service.IServiceCapableConnection;
import org.red5.server.api.so.ISharedObject;
import org.red5.server.api.ScopeUtils;
import org.red5.server.api.so.ISharedObjectService;
import org.red5.server.api.*;
import org.red5.server.api.scheduling.*;
import org.red5.samples.components.ClientManager;
import org.red5.server.api.service.ServiceUtils;
import org.red5.server.api.service.*;
import org.red5.server.api.service.IPendingServiceCallback;
Red5 can be installed as stand alone server or as a war deployment.
The procedure is to create war deployment of red5 version 0.8(old version). (Lengthy, please bear with me).
Download and install jdk1.6, glassfish2.1 and netbeans 6.5 on linux.
Download "Red5War_0.8.0.war".
I am sharing in the hope that the following may help the community to create a deployable war red5 version 0.8 on glassfish2.1 by following the steps using in Netbeans 6.5:
Step 1: Un-Zip the Red5War_0.8.0.war
Step 2: Create a web project named "red5" in Netbeans
Step 3: Copy the content of "/WEB-INF/classes" of inflated war folder and paste it in "Source Packages" of Netbeans Project.
Step 4: Right Click "Libraries", add "JAR/Folder", navigate to "/WEB-INF/lib" of inflated war folder, select all the dependency jars and Click On "Open" of Netbeans Project.
Step 5: Delete WEB-INF of Netbeans Project (Note : Ignore Warning/Error).
Step 6: Delete META-INF of the inflated folder.
Step 7: Copy the remaining content ("/WEB-INF/classes" and "/WEB-INF/lib") of the inflated folder to "Web Pages" of Netbeans Project.
Step 8: Open the following ports in the firewall TCP/843,TCP/1935,TCP/5229,TCP/5080
Step 9: Run the project
Step 10: Deployable war file "red.war" is created in the Netbeans Project Folder(../NetBeansProjects/red5/dist/)
As I am facing errors, I request you to contribute in creating new version(1.0, 1.0.1, 1.02) war deployments using new version netbeans, jdk for new version glassfish server(3.x).
Arumugam A.V

Generated CXF client would not compile with Java 1.5 on Eclipse

Today I generated a webservice client with CXF 2.6.1 (latest version), using the tool wsdl2java provided. I want to compile the generated classes with Java 5 on Eclipse but it fails because of the following imports:
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;
The CXF FAQ states that I can use it with Java 5. So I don't understand why it wouldn't compile in Eclipse.
I asked for a build.xml to be generated. When I run ant with that script, it works. The build.xml be found by downloading CXF 2.6.1 or inline as a template (easy to understand; the ant-target to use is build). From it, I deduced I needed to grab the following libraries, which I did and put in my eclipse project.
cxf-manifest.jar
geronimo-jaxws_2.2_spec-1.1.jar
jaxb-api-2.2.6.jar
So how can I get it compiling in Eclipse? What libraries, if any, am I missing?
Notes:
I have to use JDK5 to both compile and run.
My version of Eclipse is 3.7.
I have Java 6 installed, but my JAVA_HOME points well to my JDK5 instance. When I type set in a Windows command prompt, there is no reference to my Java 6 installation folder.
I don't need to copy the CXF libraries, just to link them inside my project. That works, since cxf-manifest.jar is a jar file with nothing in it except for a classpath which in turn loads all the libraries of CXF.

Import cannot be resolved in Eclipse from dependency in Play 2.0

I successfully added a dependency in Play 2.0 and was able to compile the project. When I try to run a simple test to render a PDF I get this error:
The import com.itextpdf cannot be resolved
import com.itextpdf.text.Document;
import com.itextpdf.text.DocumentException;
import com.itextpdf.text.Paragraph;
import com.itextpdf.text.pdf.PdfWriter;
How do I clear this error with Play managing this dependency?
I solved this problem by running "play eclipse" on my project in command line and then Project-->Clean in Eclipse. Similarly for Intellij "play idea" and then File > Invalidate Caches > Invalidate and restart.
If the dependency is properly added, the jar should now be on the build path. Could you check if it actually is on your buildpath? Note that the /lib directory of your project is automatically included. You could try making a symlink in /lib to the jar

Categories