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

Unknown 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...

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

Unknown said...

very nice trick...thanks bro

Unknown said...

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

Unknown said...

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

Unknown said...

Valentine Week 2017

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 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

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

Mariam Ahmed 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

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 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

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

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

chandhran said...

Nice blog, I am really happy to read your blog. Thanks for sharing your blog.
AWS Training in Bangalore
AWS Training in Chennai
AWS Course in Bangalore
Best AWS Training in Bangalore
AWS Training Institutes in Bangalore
AWS Certification Training in Bangalore
Data Science Courses in Bangalore
DevOps Training in Bangalore
PHP Training in Bangalore
DOT NET Training in Bangalore

shreekavi said...



Get inspired by your blog. Keep doing like this....
Ethical Hacking Course in Chennai
Ethical hacking course in bangalore
Ethical hacking course in coimbatore
Hacking course in bangalore
Ethical hacking in bangalore
Ethical hacking training in bangalore
Ethical Hacking institute in Bangalore
Ethical hacking Training institute in bangalore
Tally Course in Bangalore
German Classes in Bangalore

sasi said...

This was an excellent post and very good information provided, Thanks for sharing.
Python Training in Chennai
Python Training in Bangalore
Python Training in Coimbatore
Python course in bangalore
angular training in bangalore
Web Designing Course in bangalore
python training in hyderabad
Best Python Training in Bangalore
python training in marathahalli
Python Classes in Bangalore

jamuna said...

Excellent idea!!! I am really enjoy to read your post and I like it.
spanish classes in chennai
spanish courses in chennai
German Language Course in Chennai
french courses in chennai
pearson vue
IELTS Coaching center in Chennai
best english coaching centre in chennai
Blockchain Training in Chennai
content writing training in chennai
Spoken English Classes in Tnagar
Spoken English Classes in OMR

invincible01 said...

Amazing Article, Really useful information to all So, I hope you will share more information to be check and share here.


Internship near me
Inplant Training for cse
Inplant Training for IT
Inplant Training for ECE Students
Inplant Training for EEE Students
Inplant Training for MECHANICAL Students
inplant Training for CIVIL Students
Inplant Training for Aeronautical Engineering Students
Inplant Training for ICE Students
Inplant Training for BIOMEDICAL Engineering Students

maurya said...

Nice post, I like to read this blog. It is very interesting to read.
top 10 uses of python
jobs for ccna certified
scope of php in future
future scope of machine learning
data science interview questions and answers

Aishwariya said...

Awesome post..Thank you. Primavera p6 Training Online | Primavera Training Chennai

aivivubooking1 said...

Aivivu - đại lý chuyên vé máy bay trong nước và quốc tế

vé máy bay đi Mỹ giá rẻ 2021

vé máy bay thanh hóa vào sài gòn

đặt vé máy bay huế hà nội

máy bay hà nội nha trang

vé đi quy nhơn giá rẻ

bảng giá taxi sân bay nội bài

combo phú quốc tết 2021

rstrainings said...


I am really happy to say it’s an interesting post to read . I learn new information from your article , you are doing a great job . Keep it up

Devops Training in Hyderabad

Hadoop Training in Hyderabad

Python Training in Hyderabad

Tableau Training in Hyderabad

Selenium Training in Hyderabad