Monday, March 26, 2012

Fixing Twitter Bootstrap and Eclipse Javascript Errors

I've been meaning to play with Twitter Bootstrap and some of it's other associated projects like Font Awesome lately and decided to see if I could integrate into a sample application I'm building.  I'm using an SpringSource Tool Suite 2.9.1 which is based on Eclipse 3.7.2.  When using a Dynamic Web project type and bringing in the assets directory from the Bootstrap download into my WebContent directory, I kept getting JavaScript errors, lots of them.


I realized that it was simply complaining about a single prettify minimized js file that went away if I got the unminimized version.  But I'm stubborn so I refused to let Eclipse win with this work-around...

At first I thought it was related to the Validator or a Builder.  But then I noticed that there was a JavaScript reference to a runtime and I checked the Facets.  Sure enough there is a JavaScript facet that you can unlock and then uncheck.




Since I am not using that capability now, removing that Facet seemed to do the trick once I applied and executed a Project -> Clean, but at least on one occasion I actually had to rename/replace the javascript file that was causing problems to be marked as directed to in this Stack Overflow thread.  Once that was out of the way I now had a nice Bootstrap example ready to customize.  I simply copied one of the html files like starter-template.html or hero.html over from the Bootstrap examples directory and fixed the asset references with a replace-all.  If you have a better approach to get Bootstrap and Eclipse to play nicely, I'd love to hear about it.







40 comments:

InnomaxMediaLLP said...

Useful information shared..Iam very happy to read this article..thanks for giving us nice info.Fantastic walk-through. I appreciate this post.
Web development Company

akhil sharma said...

great work...very nice
valentine quote for whatsapp
valentine quote for boyfriend
valentine quote for girlfriend
valentine wishes for wife

Robert Richard said...

Furniture Removalists Sydney A renowned furniture removalists in Sydney, Bondi Removals is now offering furniture removal services at the most competitive prices. The furniture removal services they offer are carried out by their team of highly skilled and talented professionals employing cutting edge technological tools.

Devi.Angularjs said...

Wow. This really made my day. Thanks a lot!

Javascript Training in Chennai | HTML5 Online Training | JQuery Online Training

JavaScript Training Courses | Javascript Online Training | Angular 2 Training in Chennai

Devi.Angularjs said...

Interesting Article

Angularjs Training in Chennai | Backbone.JS Training in Chennai | Bootstrap Training in Chennai | Node.js Training in Chennai | Typescript Training in Chennai

Devi.Angularjs said...

JavaScript Training in Chennai JavaScript Training in Chennai Angular 2 Training in Chennai Angular 2 Training in Chennai | HTML5 Training in Chennai JQuery Training in Chennai JQuery Training in Chennai

Devi.Angularjs said...

HTML5 Training in Chennai HTML5 Training in Chennai | Angular 2 Training in Chennai Node.js Training in CHennai Node.js Training in chennai Ecmascript 6 Training in Chennai Ecmascript 6 Training in Chennai ES6 Training in Chennai ES6 Training in Chennai

Srinivas Ganta said...

very nice trick...thanks bro

Haxie 100 said...

HAPPY NEW YEAR 2017 Wishes
HAPPY NEW YEAR 2017 Profile Pics
HAPPY NEW YEAR 2017 Status Happy New Year Guys

riyaz shaik said...

Free Mp3 music download sites
Free MP3 download sites
Free music download sites
Free Mp3 music download sites 2017

Peter said...

Valentine Week 2017

sendul said...

thanks for a great variety of articles . cara menggugurkan kandungan

suvathi said...

I admire this article for the well-researched content and excellent wording. I got so involved in this material that I couldn’t stop reading. I am impressed with your work and skill. Thank you so much.
HTML Training in Chennai

Alex Kevin said...

Thanks for explaining on how to fix these errors, I tried it on the client's website https://www.technologist360.com/ and resolved there issue.

SELVIN said...

Thanks for the great Article its helpful for me .......HTML5 Training In Chennai |
HTML5 course In Chennai

The Admin said...

Good work
Amit Tandon
Sheraz Sikander
Top Pakistani Actress
Famous Pakistani Actors
Pakistani Tv Actors
Muhammad Ali Pakistani Showbiz Affairs
Pakistani Superstar
Hot Pakistani Men

yogesh kumar said...

This is an awesome post. Really very informative and creative contents. This concept is a good way to enhance knowledge. I like it and help me to development very well. Thank you for this brief explanation and very nice information. Well, got good knowledge.
WordPress development company in Chennai

Praylin S said...

Thank you for sharing this informative post. This article is clearly explained and well executed. Looking forward for more posts from you. Keep updating. Regards.
Javascript Training in Chennai | Javascript Training Courses | Javascript Training Center in Chennai

marshmellow said...

thank u for the info on html5 training in chennai

Aruna Ram said...

Hi! I was much time to spend your post, it is very impressed to me. so I am regularly following your post. I would like more ideas from your blog...
Primavera Training in Chennai
Primavera Course in Chennai
Corporate Training in Chennai
Embedded System Course Chennai
Oracle Training in Chennai
Tableau Training in Chennai
Spark Training in Chennai
Excel Training in Chennai
Power BI Training in Chennai

Vicky Ram said...

I am happy to find this post Very useful for me, as it contains lot of information

indiaunimagined
Article submission sites

Sai Elakiyaa said...

I can see your hardwork in this article, great work keep doing.


German Classes in Chennai
CCNA Training in Chennai
Android training
android app development course in chennai
android Training in Chennai
Java Training in Chennai

sheela rajesh said...

Nice idea,keep sharing your ideas with us.i hope this information's will be helpful for the new learners.
Software Testing Training in Chennai
Software testing training in Tambaram
JAVA Training in Chennai
Python Training in Chennai
Big data training in chennai
Android Training in Chennai
Software Testing Training in Chennai
Software Testing Course in Chennai

Vicky Ram said...

I have read your blog its very attractive and impressive. I like it your blog.

businessexceltemplates
Article submission sites

janakikrishnan said...

Get inspired by your blog. Keep going.

Tally Course in Madurai
Tally Training in Madurai
Tally Course in Coimbatore
Tally Training Coimbatore
Tally Classes in Coimbatore
Tally Training Institute in Coimbatore

sangeetha said...
This comment has been removed by the author.
lekha mathan said...

Excellent post gained so much of information, Keep posting like this.
Aviation Academy in Chennai
Air hostess training in Chennai
Airport management courses in Chennai
Ground staff training in Chennai
Aviation Courses in Chennai
Air hostess training in Chennai
Airline Courses in Chennai
airport ground staff training courses in Chennai

janakikrishnan said...

The blog is very useful for me and everyone who needs to know about this topic. Thank you for it.

Embedded Course in Coimbatore.
Embedded Training Institute in Coimbatore.
Embedded Training in Coimbatore
Best Embedded Training Institute in Coimbatore
Embedded Systems Course in Coimbatore
Embedded Systems Training in Coimbatore

Senthil said...

I got many useful informations about this topic from your blog. Really very useful for learning the skills
AngularJS Training in Tambaram
AngularJS Training in Porur
AngularJS Training in Velachery
Angularjs Training in chennai
AngularJS Training in T Nagar
Web Designing Training in OMR
Web Designing Training in T Nagar
Web Designing Training in Tambaram

Raju said...

I read awesome post after a long time.I am very satisfied with your way of writing.Expect the next post in the upcoming days.
AngularJS Training in OMR
Web designing Training in Anna Nagar
AngularJS Training in Tambaram
Web Designing Training in OMR
AngularJS Training in Porur
Web Designing Training in Porur
AngularJS Training in Velachery
Web designing Training in T Nagar

Tony Stark said...

Embedded Training in Chennai | Embedded Training in Anna Nagar | Embedded System Training in Anna Nagar | Embedded System Training in Chennai | Best Embedded System Training in Chennai | Best Embedded Systems Training in Chennai | Embedded Training Institute in Chennai | Embedded System Training Institute in Chennai | Embedded Course in Chennai | Embedded Training Center in Chennai

Tony Stark said...

Embedded Training in Chennai | Best Embedded Training in Chennai | Embedded System Training in Chennai | Embedded System Training Institute in Chennai | Best Embedded System Training Institute in Chennai | Embedded Course in Chennai | Embedded System Training Institutes in Chennai | Embedded System Training Center in Chennai | Best Embedded System Training in Chennai | Embedded Systems Training in Chennai

Tony Stark said...

Embedded Systems Course in Chennai | Embedded Systems Training Course in Chennai | Embedded Systems Training in Chennai | Embedded Systems in Chennai | Embedded Systems Training Institute in Chennai | Embedded Training in Chennai | Embedded Training Institute in Chennai | Best Embedded Systems Course in Chennai | Best Embedded Systems Training in Chennai | Embedded Systems Course in Chennai | Embedded System Training Centre in Chennai | Embedded System Training Center in Chennai | Best Training Institute for Embedded System in Chennai | Embedded System Training Center in Chennai | Embedded System Classes in Chennai | Embedded System Training with Placement in Chennai | Embedded Systems Certification Courses in Chennai | Embedded Systems Course in Chennai with Placement

yuvaprithika said...


Great info. The content you wrote is very interesting to read. This will loved by all age groups.
Angularjs Training in Chennai
Angularjs Course in Chennai
Web Designing Course in Chennai
PHP Training in Chennai
ccna Training in Chennai
gst training in chennai
ReactJS Training in Chennai
Angularjs Training in Chennai
Angularjs Course in Chennai

kiruthika said...

It’s really a Great Post .Looking for Some More Stuff
best aviation academy in Chennai
cabin crew training Chennai
airline academy in Chennai
airport ground staff training courses in Chennai
Aviation Academy in Chennai
air hostess training in Chennai
airport management courses in Chennai
ground staff training in Chennai

Anbarasan14 said...

That’s a very useful information indeed. Kindly do share more post in detail.

Education Franchise India
Spoken English Franchise
Franchise For Spoken English Classes
Top Education Franchise In India
Best Education Franchise In India
Computer Education Franchise
Education Franchise India
Computer Center Franchise
Education Franchise Opportunities In India

firstfly said...

it's very interesting, Thanks for sharing a piece of valuable information to us & Knowledgeable also, keep on sharing like this.

Best Aviation Academy in Chennai
Best Air hostess Training in Chennai
Pilot Training in Chennai
Airport Ground staff Training in Chennai
Airport Flight Dispatcher Trainee in Chennai
RTR - Aero Training in Chennai
Cabin Crew Training in Chennai
Aviation Academy in Chennai
Aviation training institute in Chennai
Aviation Course Training in Chennai
Ground staff Training institute in Chennai
Airhostess Training institute in Chennai
Cabin Crew Course
PRIVATE PILOT LICENCE (PPL) Training in Chennai
COMMERCIAL PILOT LICENCE (CPL) Training in Chennai


Unknown said...

Thank you for sharing this amazing post. Hope readers will like it.

Cheeksandtoez
Register at Cheeksandtoez

Chris Hemsworth said...

The article is so informative. This is more helpful for our
software testing training institute in chennai with placement I software testing class
selenium training in chennai
software testing course in chennai with placement
magento training course in chennai
Thanks for sharing.

divi said...

Nice post, It was very helpful for developing my skill knowledge and I like more ideas from your attractive blog.thanks for your information really good and very nice web design company in velachery