Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Need help applying patch to an existing project in eclipse

Posted on 2011-02-18
7
820 Views
Last Modified: 2012-05-11
Hello all,

I'm trying to apply a patch to Spark by using Eclipse. i follow the instructions here http://community.igniterealtime.org/docs/DOC-1040
and i think everything went well. I then follow the instructions here
http://community.igniterealtime.org/message/187391#187391
However, when i tried to apply the patch i get a bunch of errors.
Errors while patching
What I'm trying to accomplish here is to disable the Add Contacts option in Spark. This is my first time using Eclipse so please talk to me in baby language. Let me know if you need more info. Thanks!
0
Comment
Question by:schang626
  • 4
  • 2
7 Comments
 
LVL 5

Expert Comment

by:aciuica
ID: 34932519
It seems that the patch expected that you have a Spark project and probably your project name is park.
But anyway it seems that the latest sources contains already the changes from this patch.
So I think that you need only to change in the default.properties file the line:
ADD_CONTACT_DISABLED =
with:
ADD_CONTACT_DISABLED = true
0
 
LVL 5

Expert Comment

by:aciuica
ID: 34932521
In first sentence i meen "... your project name is spark" not "park" :)
0
 
LVL 20

Expert Comment

by:Sathish David Kumar N
ID: 34932955
check whether its spark or Spark bcz it case sentive
0
Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

 
LVL 1

Author Comment

by:schang626
ID: 35002821
Thanks for the replies.
how to change the default.properties file?

when i create the project, it only takes spark. It doesn't let me enter Spark
0
 
LVL 5

Accepted Solution

by:
aciuica earned 500 total points
ID: 35005412
In spark project should be a file default.properties. You can open it and change the line ADD_CONTACT_DISABLED =
with:
ADD_CONTACT_DISABLED = true
I meen that the code contained in the patch is already implemented in last version.
So you don't need to apply the pacth. Is enough to configure this ADD_CONTACT_DISABLED variable.
0
 
LVL 1

Author Comment

by:schang626
ID: 35019296
ok i found the file default.properties here: C:\Users\xxx\workspace\spark\bin\org\jivesoftware\resource
and i've change the statues to true. how do i run the program now? Thanks.
0
 
LVL 5

Expert Comment

by:aciuica
ID: 35019745
I think that you should change the file (you can do it in eclipse) from location .../spark/src/java/org/jivesoftware/resource/default.properties and then you can run the program from eclipse like before using main class org.jivesoftware.launcher.Startup
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Application launch issue with Apache Tomcat 5 63
SHA2 certs for IIS AND Java? 2 113
Tomcat: Unable to run tomcat service. 2 23
Notify sent to other threads in Java 9 33
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question